mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 02:47:14 +08:00
36 lines
795 B
Bash
36 lines
795 B
Bash
# Maintainer: Martín Cigorraga <{name}{surname}@gmail.com>
|
|
# Contributions from Arch Linux: https://www.archlinux.org/packages/extra/x86_64/libbsd/
|
|
|
|
pkgname=libbsd
|
|
pkgver=0.6.0
|
|
pkgrel=1
|
|
pkgdesc="Provides useful functions commonly found on BSD systems like strlcpy()"
|
|
arch=('x86_64')
|
|
url="http://libbsd.freedesktop.org"
|
|
license=('custom')
|
|
depends=('glibc')
|
|
options=('staticlibs')
|
|
source=(http://libbsd.freedesktop.org/releases/$pkgname-$pkgver.tar.xz)
|
|
md5sums=('f6c75f0a9818e323a589bcbd560a0eb4')
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
rm "${pkgdir}"/usr/lib/libbsd.a
|
|
install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|