Fix libbsd-ctor: only package if it was actually installed

The library is built conditionally based on compiler checks.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2020-03-13 17:51:11 +01:00
parent 356f4ed018
commit 4aab514712
2 changed files with 7 additions and 2 deletions

View File

@ -18,6 +18,13 @@ build() {
deploy() {
make DESTDIR="$PKGDEPLOYDIR" install
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
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
}
check_update() {

View File

@ -32,6 +32,4 @@ file include/bsd/getopt.h 0644 0 0
file include/bsd/err.h 0644 0 0
file lib/pkgconfig/libbsd-overlay.pc 0644 0 0
file lib/pkgconfig/libbsd.pc 0644 0 0
file lib/pkgconfig/libbsd-ctor.pc 0644 0 0
file lib/libbsd-ctor.a 0644 0 0
slink lib/libbsd.so 0777 0 0 libbsd.so.0.10.0