summaryrefslogtreecommitdiff
path: root/build-fehQlibs
diff options
context:
space:
mode:
Diffstat (limited to 'build-fehQlibs')
-rwxr-xr-xbuild-fehQlibs30
1 files changed, 8 insertions, 22 deletions
diff --git a/build-fehQlibs b/build-fehQlibs
index 970d77d..20aeb51 100755
--- a/build-fehQlibs
+++ b/build-fehQlibs
@@ -2,14 +2,14 @@
set -eu
-version=22a
+version=25a
upname=fehqlibs_$version.orig.tar.gz
srcname=fehqlibs-$version
wget https://www.fehcom.de/ipnet/fehQlibs/fehQlibs-$version.tgz
ln -sf fehQlibs-$version.tgz $upname
tar -xf $upname
-mv fehQlibs-$version $srcname
+mv fehQlibs-${version%a} $srcname
cd $srcname
debmake -b libqlibs --email jannis@fehcom.de --fullname 'Jannis M. Hoffmann'
@@ -40,21 +40,21 @@ export DH_VERBOSE = 1
dh $@ --buildsystem=none
override_dh_auto_clean:
- $(MAKE) clean
+ $(MAKE) -C src clean
sed -i '31,$$d' conf-build
override_dh_auto_configure:
echo CFLAGS=\"-Iinclude $(CFLAGS)\" >>conf-build
- $(MAKE) check
+ $(MAKE) -C src check
override_dh_auto_build:
- LDFLAGS= $(MAKE) default
+ LDFLAGS= $(MAKE) -C src default
END
cat <<'END' >debian/install
#!/usr/bin/dh-exec
-qlibs.a => usr/lib/${DEB_HOST_MULTIARCH}/libqlibs.a
-dnsstub/dnsresolv.a => usr/lib/${DEB_HOST_MULTIARCH}/libdnsresolv.a
+src/qlibs.a => usr/lib/${DEB_HOST_MULTIARCH}/libqlibs.a
+src/dnsstub/dnsresolv.a => usr/lib/${DEB_HOST_MULTIARCH}/libdnsresolv.a
debian/contrib/qlibs.pc usr/share/pkgconfig/
END
chmod +x debian/install
@@ -75,23 +75,9 @@ includedir=${prefix}/include
Name: qlibs
Description: qlibs is the foundation of `feh' software
URL: https://www.fehcom.de/ipnet/qlibs.html
-Version: 22a
+Version: 25a
Cflags: -I${includedir}/qlibs
Libs: -lqlibs -ldnsresolv
END
-cat <<END >debian/patches/000-ip-unsigned.patch
-Author: Jannis M. Hoffmann <jannis@fehcom.de>
-
---- fehqlibs_$version.orig/include/ip.h
-+++ fehqlibs-$version/include/ip.h
-@@ -60,3 +60,3 @@
- const static char V4localnet[4] = {0,0,0,0};
--const static char V4broadcast[4] = {255,255,255,255};
-+const static unsigned char V4broadcast[4] = {255,255,255,255};
-
-END
-
-echo 000-ip-unsigned.patch >>debian/patches/series
-
rm debian/source/control debian/tests/control