core/libbsd/PKGBUILD

35 lines
735 B
Bash
Raw Normal View History

2013-11-12 08:35:16 +08:00
# Contributions from Arch Linux: https://www.archlinux.org/packages/extra/x86_64/libbsd/
pkgname=libbsd
2015-03-24 08:11:30 +08:00
pkgver=0.7.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)
2015-03-24 08:11:30 +08:00
md5sums=('fcceb4e66fd448ca4ed42ba22a8babb0')
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"
}