summaryrefslogtreecommitdiffstats
path: root/testing/esasl/APKBUILD
blob: 74ff8678e91cb6874771859b7076a23b251416c6 (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
42
43
44
45
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=esasl
pkgver=0_git20130606
pkgrel=1
pkgdesc="Simple SASL library for Erlang"
url="https://github.com/mikma/esasl/"
arch="all"
license="LGPL2+ BSD"
depends=""
depends_dev="erlang-dev libgsasl-dev"
makedepends="$depends_dev autoconf automake"
install=""
subpackages=""
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz"
giturl="https://github.com/mikma/esasl.git"
disturl="dev.alpinelinux.org:/archive/$pkgname/"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./bootstrap
	./configure --prefix=/usr \
		|| return 1
	make || return 1
}

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

md5sums="7991ca8c2002afc42e40201eebb58193  esasl-0_git20130606.tar.gz"
sha256sums="b5c9dccef065910c4a8de5081aa454e52853ce77480f27f00ef0f3b498062ebf  esasl-0_git20130606.tar.gz"
sha512sums="bc194f84ab346651359c03496361f1953df18eb9a7823ee1cd015f1b6973e686fd9a59bca7fc3d7e3930e1e16728743d77b933c2ea4fabbe1bef1f50e88b4505  esasl-0_git20130606.tar.gz"