summaryrefslogtreecommitdiffstats
path: root/main/popt/APKBUILD
blob: 3263cb74ebbb77c25781e8f4f6fe949813f3fcec (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=popt
pkgver=1.16
pkgrel=5
pkgdesc="A commandline option parser"
url="http://rpm5.org"
arch="all"
license="custom"
depends=
makedepends="!libiconv-dev"
source="http://rpm5.org/files/$pkgname/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-doc $pkgname-dev"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	update_config_sub || return 1
}

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libdir=/lib \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR=$pkgdir install || return 1
	rm -f "$pkgdir"/lib/*.la
}

md5sums="3743beefa3dd6247a73f8f7a32c14c33  popt-1.16.tar.gz"