main/libdnet: APKBUILD fixes

This commit is contained in:
Leonardo Arena 2016-10-31 13:49:11 +00:00
parent 9c922631bf
commit cb772d7512

View File

@ -1,19 +1,19 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdnet
pkgver=1.12
pkgrel=6
pkgrel=7
pkgdesc="A simplified, portable interface to several low-level networking routines"
url="http://code.google.com/p/libdnet/"
url="https://github.com/dugsong/libdnet"
arch="all"
license="BSD"
subpackages="$pkgname-dev $pkgname-doc"
depends=""
makedepends="autoconf automake libtool linux-headers"
makedepends="autoconf automake bash libtool linux-headers"
install=
source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tgz
source="https://github.com/dugsong/libdnet/archive/libdnet-1.12.tar.gz
automake.patch"
_builddir="$srcdir"/$pkgname-$pkgver
_builddir="$srcdir"/$pkgname-$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
@ -25,7 +25,6 @@ prepare() {
# new libtool
aclocal -I config && autoconf && automake --force --add-missing \
&& libtoolize || return 1
}
build() {
@ -41,9 +40,13 @@ build() {
}
package() {
cd "$srcdir"/$pkgname-$pkgver
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="9253ef6de1b5e28e9c9a62b882e44cc9 libdnet-1.12.tgz
md5sums="d2f1b72eac2a1070959667e9e61dcf20 libdnet-1.12.tar.gz
059d1e50cfa27cab45af72530a4f74fd automake.patch"
sha256sums="b6360659c93fa2e3cde9e0a1fc9c07bc4111f3448c5de856e095eb98315dd424 libdnet-1.12.tar.gz
d29bcb810a722a961fc96793e07fb759c83c375415926802e732c8e4c06ca693 automake.patch"
sha512sums="a2410a98b76d4bccecf7bcb82ff0b6e9fb809b389f7fea938cc42d94e18622cc5f353d2de737121a1990d9e16e9db8cc2f82677c94f78cd03c9227e815eab9e0 libdnet-1.12.tar.gz
8a47795c5edb5f67df46a59f2f4d8798b2e34f34e0aae3202a6cca8e475f105e08fa5586a432fba9f443c1df57441cffcdc08f5e4eb53df8e73c2a6c8c075477 automake.patch"