mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-29 05:12:18 +01:00
38 lines
804 B
Plaintext
38 lines
804 B
Plaintext
# Contributor: Harry
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=liboping
|
|
pkgver=1.6.1
|
|
pkgrel=0
|
|
pkgdesc="A Ping Lib"
|
|
url="http://verplant.org/liboping/"
|
|
arch="all"
|
|
license=GPL
|
|
depends=
|
|
# make install needs setcap provided by libcap
|
|
makedepends="ncurses-dev libcap"
|
|
source="http://verplant.org/liboping/files/$pkgname-$pkgver.tar.bz2"
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
|
|
_builddir="$srcdir/$pkgname-$pkgver"
|
|
prepare() {
|
|
cd "$_builddir"
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib \
|
|
--without-perl-bindings \
|
|
--disable-static \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make install DESTDIR="$pkgdir" || return 1
|
|
rm "$pkgdir"/usr/lib/*.la || return 1
|
|
}
|
|
|
|
md5sums="748554a18e1771913f4f402ee9f957c9 liboping-1.6.1.tar.bz2"
|