aboutsummaryrefslogtreecommitdiffstats
path: root/community/liboauth/APKBUILD
blob: 47cda6771c43751bc51f30187559ea7359d7df10 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=liboauth
pkgver=1.0.3
pkgrel=1
pkgdesc="OAuth library functions"
url="http://liboauth.sourceforge.net/"
arch="all"
license="MIT"
depends=""
makedepends="nss-dev curl-dev automake autoconf libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/x42/liboauth/archive/v$pkgver.tar.gz"

builddir="$srcdir"/liboauth-$pkgver

build() {
	cd "$builddir"
	autoreconf -vif || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static \
		--enable-nss \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="a334455fe331672cd20c131e61e86df7  liboauth-1.0.3.tar.gz"
sha256sums="bbe73b9f576fab0deefadb242c069f2f8bfa4068c738b7666ccd01381502c854  liboauth-1.0.3.tar.gz"
sha512sums="94976f9e1ae451b3b312664b8d3e7858913673ef783539df4a033a55ffa05e56410a3dab0cfd8a1d9e839bd6d7fedd3258ac8819c7d3cf1357a862174bf49a71  liboauth-1.0.3.tar.gz"