aboutsummaryrefslogtreecommitdiffstats
path: root/liboauth/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'liboauth/PKGBUILD')
-rw-r--r--liboauth/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/liboauth/PKGBUILD b/liboauth/PKGBUILD
new file mode 100644
index 0000000..0b04d80
--- /dev/null
+++ b/liboauth/PKGBUILD
@@ -0,0 +1,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
+}