diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-11-26 18:06:14 +0100 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-11-26 18:06:14 +0100 |
commit | 94e7ec2e703247f5e41641c95c825919e8a66b4b (patch) | |
tree | 6b134d5a9f1afeb00a315a8ffad6e0f69975d09d /build-fehQlibs | |
parent | 5c4b60da46401ff3faf9e3f07d13f694f018cf29 (diff) |
convert build script to debian directory for fehqlibs
Diffstat (limited to 'build-fehQlibs')
-rwxr-xr-x | build-fehQlibs | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/build-fehQlibs b/build-fehQlibs deleted file mode 100755 index 20aeb51..0000000 --- a/build-fehQlibs +++ /dev/null @@ -1,83 +0,0 @@ -#!/bin/sh - -set -eu - -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%a} $srcname -cd $srcname -debmake -b libqlibs --email jannis@fehcom.de --fullname 'Jannis M. Hoffmann' - -patch debian/control <<'END' -2c2 -< Section: unknown ---- -> Section: libs -5c5 -< Build-Depends: debhelper-compat (= 13) ---- -> Build-Depends: debhelper-compat (= 13), dh-exec -7c7 -< Homepage: <insert the upstream URL, if relevant> ---- -> Homepage: https://www.fehcom.de/ipnet/qlibs.html -17c17 -< Depends: ${misc:Depends}, ${shlibs:Depends} ---- -> Depends: ${misc:Depends}, ${shlibs:Depends}, pkgconf -END - -cat <<'END' >debian/rules -#!/usr/bin/make -f -export DH_VERBOSE = 1 - -%: - dh $@ --buildsystem=none - -override_dh_auto_clean: - $(MAKE) -C src clean - sed -i '31,$$d' conf-build - -override_dh_auto_configure: - echo CFLAGS=\"-Iinclude $(CFLAGS)\" >>conf-build - $(MAKE) -C src check - -override_dh_auto_build: - LDFLAGS= $(MAKE) -C src default -END - -cat <<'END' >debian/install -#!/usr/bin/dh-exec -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 -ls --zero include/*.h | xargs --null -I{} echo '{} usr/include/qlibs/' >>debian/install - -cat <<'END' >debian/manpages -#!/usr/bin/dh-exec -man/error.3 => man/error-qlibs.3 -END -chmod +x debian/manpages -ls man/*.3 | grep -F 'man/error.3' -v >>debian/manpages - -mkdir debian/contrib -cat <<'END' >debian/contrib/qlibs.pc -prefix=/usr -includedir=${prefix}/include - -Name: qlibs -Description: qlibs is the foundation of `feh' software -URL: https://www.fehcom.de/ipnet/qlibs.html -Version: 25a -Cflags: -I${includedir}/qlibs -Libs: -lqlibs -ldnsresolv -END - -rm debian/source/control debian/tests/control |