mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 10:12:59 +01:00
Since abuild v2.22.0, these are removed automatically unless 'libtool' option has been specified.
50 lines
1.1 KiB
Plaintext
50 lines
1.1 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libdnet
|
|
pkgver=1.12
|
|
pkgrel=6
|
|
pkgdesc="A simplified, portable interface to several low-level networking routines"
|
|
url="http://code.google.com/p/libdnet/"
|
|
arch="all"
|
|
license="BSD"
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
depends=""
|
|
makedepends="autoconf automake libtool linux-headers"
|
|
install=
|
|
source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tgz
|
|
automake.patch"
|
|
|
|
_builddir="$srcdir"/$pkgname-$pkgver
|
|
prepare() {
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
# the libtool script does not add .so extention to we generate
|
|
# new libtool
|
|
aclocal -I config && autoconf && automake --force --add-missing \
|
|
&& libtoolize || return 1
|
|
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--without-python \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir"/$pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install || return 1
|
|
}
|
|
|
|
md5sums="9253ef6de1b5e28e9c9a62b882e44cc9 libdnet-1.12.tgz
|
|
059d1e50cfa27cab45af72530a4f74fd automake.patch"
|