Browse Source

[trunk] -> [testing] 'liboauth-1.0.3+14+g186fb14-2' add

master
Dudemanguy 2 years ago
parent
commit
847230bfcb
Signed by: Dudemanguy GPG Key ID: 4003D2EF625D6492
  1. 44
      liboauth/repos/testing-x86_64/PKGBUILD
  2. 2
      liboauth/trunk/PKGBUILD

44
liboauth/repos/testing-x86_64/PKGBUILD

@ -0,0 +1,44 @@
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Martin Häger <martin.haeger@gmail.com>
pkgname=liboauth
pkgver=1.0.3+14+g186fb14
pkgrel=2
pkgdesc="C library implementing OAuth Core RFC 5849"
url="https://github.com/x42/liboauth"
arch=(x86_64)
license=(MIT)
depends=(curl nss)
makedepends=(git)
_commit=186fb14843c1bc98b70ece02c74b5696b3de9ce7 # master
source=("git+$url#commit=$_commit")
sha256sums=('SKIP')
prepare() {
cd $pkgname
autoreconf -fvi
}
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/-/+/g'
}
build() {
cd $pkgname
./configure --prefix=/usr --disable-static --enable-nss
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd $pkgname
make check
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
install -Dm644 COPYING.MIT "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

2
liboauth/trunk/PKGBUILD

@ -4,7 +4,7 @@
pkgname=liboauth
pkgver=1.0.3+14+g186fb14
pkgrel=1
pkgrel=2
pkgdesc="C library implementing OAuth Core RFC 5849"
url="https://github.com/x42/liboauth"
arch=(x86_64)

Loading…
Cancel
Save