2019-09-17 21:25:05 +02:00
|
|
|
VERSION="0.10.0"
|
2018-01-22 16:58:35 +01:00
|
|
|
SRCDIR="libbsd-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
|
|
URL="https://libbsd.freedesktop.org/releases"
|
2019-09-17 21:25:05 +02:00
|
|
|
SHA256SUM="34b8adc726883d0e85b3118fa13605e179a62b31ba51f676136ecb2d0bc1a887"
|
2018-02-15 23:47:54 +01:00
|
|
|
DEPENDS="toolchain"
|
2019-02-27 14:22:03 +01:00
|
|
|
SUBPKG="libbsd libbsd-dev"
|
2018-01-22 16:58:35 +01:00
|
|
|
|
|
|
|
build() {
|
2018-09-02 14:19:23 +02:00
|
|
|
run_configure "$1"
|
2018-01-22 16:58:35 +01:00
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
2019-03-06 10:03:12 +01:00
|
|
|
make DESTDIR="$PKGDEPLOYDIR" install
|
|
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
2020-03-13 17:51:11 +01:00
|
|
|
|
|
|
|
if [ -e "$PKGDEPLOYDIR/lib/libbsd-ctor.a" ]; then
|
|
|
|
cat >> "$PKGDEPLOYDIR/libbsd-dev.files" <<_EOF
|
|
|
|
file lib/pkgconfig/libbsd-ctor.pc 0644 0 0
|
|
|
|
file lib/libbsd-ctor.a 0644 0 0
|
|
|
|
_EOF
|
|
|
|
fi
|
2018-01-22 16:58:35 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
2019-07-07 16:17:16 +02:00
|
|
|
check_update_simple "$URL" "libbsd" "tar.xz"
|
2019-03-06 10:03:12 +01:00
|
|
|
}
|