aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libavl/APKBUILD
blob: e45ab3b867812c2698c4f133269d04bb599dfd25 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=libavl
pkgver=0.3.5
pkgrel=0
pkgdesc="AVLTree is a small implementation of AVL trees"
url="http://ftp.debian.org/debian/pool/main/liba/libavl"
arch="all"
license="LGPL"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://libavl.sourcearchive.com/downloads/0.3.5-3/libavl_$pkgver.orig.tar.gz
	libavl_0.3.5-3.patch"
_builddir="$srcdir/avl-$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"
	make || return 1
}

package() {
        cd "$_builddir"
        make prefix="$pkgdir" install || return 1
}
md5sums="882c68ea7f71876ca110f3b84d7ab12d  libavl_0.3.5.orig.tar.gz
71a9af7a70f37b1ac17a010872a47712  libavl_0.3.5-3.patch"
sha256sums="4497b9e22cdd61ae2fa893b9d5fd6213dc306726d7c4be08c29e173622dca8a0  libavl_0.3.5.orig.tar.gz
2784d360e5afae8b46104755f72d59317d997ac638b51bcffd1a2b70bf6894e9  libavl_0.3.5-3.patch"
sha512sums="6a409025eb4560961c35bf0d80deb592ada9b448c497955ec7662a478fc4cebfdd46b9f33db0c913af773614752444563d29cea4418f896eb2761a233ee64b6d  libavl_0.3.5.orig.tar.gz
dd08c0bed82eefe304355f102d6b0c3a088cd199fcf3ca456a3c747d5da9059bc8621fab72db730d7fe67c52a51c01e7a0835107ef624db4e79a1c2a2e4c899d  libavl_0.3.5-3.patch"