aboutsummaryrefslogtreecommitdiffstats
path: root/main/popt/APKBUILD
blob: 23eede2874d61aa373c87c75380c781f74ecd982 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=popt
pkgver=1.16
pkgrel=6
pkgdesc="A commandline option parser"
url="http://rpm5.org"
arch="all"
license="custom"
depends=
makedepends=""
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
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

md5sums="3743beefa3dd6247a73f8f7a32c14c33  popt-1.16.tar.gz"
sha256sums="e728ed296fe9f069a0e005003c3d6b2dde3d9cad453422a10d6558616d304cc8  popt-1.16.tar.gz"
sha512sums="bae2dd4e5d682ef023fdc77ae60c4aad01a3a576d45af9d78d22490c11e410e60edda37ede171920746d4ae0d5de3c060d15cecfd41ba75b727a811be828d694  popt-1.16.tar.gz"