mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
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:
parent
356f4ed018
commit
4aab514712
2 changed files with 7 additions and 2 deletions
|
@ -18,6 +18,13 @@ build() {
|
||||||
deploy() {
|
deploy() {
|
||||||
make DESTDIR="$PKGDEPLOYDIR" install
|
make DESTDIR="$PKGDEPLOYDIR" install
|
||||||
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
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() {
|
check_update() {
|
||||||
|
|
|
@ -32,6 +32,4 @@ file include/bsd/getopt.h 0644 0 0
|
||||||
file include/bsd/err.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-overlay.pc 0644 0 0
|
||||||
file lib/pkgconfig/libbsd.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
|
slink lib/libbsd.so 0777 0 0 libbsd.so.0.10.0
|
||||||
|
|
Loading…
Reference in a new issue