summaryrefslogtreecommitdiffstats
path: root/main/libestr/APKBUILD
blob: 70c1ac450f94b032ecfe6a5384856807181be9d4 (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
# Contributor: Uros
# Maintainer: Cameron Banta <cbanta@gmail.com>
pkgname=libestr
pkgver=0.1.9
pkgrel=0
pkgdesc="essentials for string handling (and a bit more)"
url="http://libestr.adiscon.com"
arch="all"
license="LGPL2.1"
subpackages="$pkgname-dev"
source="http://libestr.adiscon.com/files/download/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -rf "$pkgdir"/usr/lib/libestr.la
}

md5sums="681ca0ed7e5ae6ddff70fdec413096e4  libestr-0.1.9.tar.gz"
sha256sums="822c6e2d01eaca1e72201f403a2ca01f3e86410b880e508e5204e3c2694d751a  libestr-0.1.9.tar.gz"
sha512sums="17e1a62d2d4cb7e33dc14d4368b507fff1676c5a2cb24001078ff2a6f15236f9674dc47a599900c94ae2bd0e58dbe56b084d01d5a17174e5a54884d1f4c7616c  libestr-0.1.9.tar.gz"