core/libbsd/PKGBUILD

36 lines
795 B
Bash
Raw Normal View History

2013-11-12 08:35:16 +08:00
# Maintainer: Martín Cigorraga <{name}{surname}@gmail.com>
# Contributions from Arch Linux: https://www.archlinux.org/packages/extra/x86_64/libbsd/
pkgname=libbsd
2013-11-12 08:35:16 +08:00
pkgver=0.6.0
pkgrel=1
pkgdesc="Provides useful functions commonly found on BSD systems like strlcpy()"
2013-02-26 03:55:14 +08:00
arch=('x86_64')
url="http://libbsd.freedesktop.org"
license=('custom')
depends=('glibc')
2013-11-12 08:35:16 +08:00
options=('staticlibs')
source=(http://libbsd.freedesktop.org/releases/$pkgname-$pkgver.tar.xz)
md5sums=('f6c75f0a9818e323a589bcbd560a0eb4')
build() {
2013-11-12 08:35:16 +08:00
cd $pkgname-$pkgver
./configure --prefix=/usr
2013-02-26 03:55:14 +08:00
make
}
2013-11-12 08:35:16 +08:00
check() {
cd $pkgname-$pkgver
make check
}
package() {
2013-11-12 08:35:16 +08:00
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
rm "${pkgdir}"/usr/lib/libbsd.a
install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}