APKBUILD 1.07 KB
Newer Older
Michael Mason's avatar
Michael Mason committed
1
# Contributor: Michael Mason <ms13sp@gmail.com>
Natanael Copa's avatar
Natanael Copa committed
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Michael Mason's avatar
Michael Mason committed
3
pkgname=libidn
Natanael Copa's avatar
Natanael Copa committed
4
pkgver=1.29
Natanael Copa's avatar
Natanael Copa committed
5
pkgrel=0
Michael Mason's avatar
Michael Mason committed
6 7
pkgdesc="An encode and decode library for internationalized domain names"
url="http://www.gnu.org/software/libidn/"
8
arch="all"
Michael Mason's avatar
Michael Mason committed
9
license="GPL"
Natanael Copa's avatar
Natanael Copa committed
10
depends=
11
makedepends=
Michael Mason's avatar
Michael Mason committed
12 13 14 15 16 17 18 19
install=
subpackages="$pkgname-doc $pkgname-dev"
source="http://ftp.gnu.org/gnu/libidn/$pkgname-$pkgver.tar.gz"
	

build() {
	cd "$srcdir/$pkgname-$pkgver"

20 21 22 23
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Michael Mason's avatar
Michael Mason committed
24 25 26
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
27 28
		--disable-nls \
		|| return 1
Michael Mason's avatar
Michael Mason committed
29
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
30 31 32 33
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
Natanael Copa's avatar
Natanael Copa committed
34 35
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
Michael Mason's avatar
Michael Mason committed
36 37
}

Natanael Copa's avatar
Natanael Copa committed
38 39 40
md5sums="2b67bb507207af379f9461e1307dc84b  libidn-1.29.tar.gz"
sha256sums="fb82747dbbf9b36f703ed27293317d818d7e851d4f5773dedf3efa4db32a7c7c  libidn-1.29.tar.gz"
sha512sums="4e316d3e2d39d052227f3cc915341692815ab59a1fb56a25dff564329cadfd9e7738f07697bbc7f5f2577827cdbfd9af2cb89487c74ead97a77a186d37a97e30  libidn-1.29.tar.gz"