aboutsummaryrefslogtreecommitdiffstats
path: root/liboauth/PKGBUILD
blob: 0b04d80b4f6aafc43e6332526a4175f33250e760 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#Maintainer: Zee Eichel  <zee@dracos-linux.org>

pkgname=liboauth
pkgver=1.0.3
pkgrel=1
pkgdesc="C library implementing OAuth Core RFC 5849"
arch=('x86_64')
url="https://github.com/x42/liboauth"
license=('MIT')
depends=('nss' 'curl')
source=("https://downloads.sourceforge.net/liboauth/liboauth-${pkgver}.tar.gz"
	      "http://www.linuxfromscratch.org/patches/blfs/8.4/liboauth-1.0.3-openssl-1.1.0-3.patch"
)
sha256sums=('0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f'
            'fad8bdb5e0d97c353099304616c847622251a9d5dd00552d48100569e6f25e03'
)

build() {
	cd "${srcdir}/liboauth-${pkgver}"
	patch -Np1 -i "${srcdir}/liboauth-1.0.3-openssl-1.1.0-3.patch"
	autoreconf -fi
	./configure --prefix=/usr --enable-nss --disable-static
	make
}

package() {
	cd "${srcdir}/liboauth-${pkgver}"
	make install DESTDIR="${pkgdir}"
  rm -rf $pkgdir/usr/share
}