https://github.com/cmpitg/infinality-debian-package
┌─[✗]─[user@debian]─[~/myscript/debian]
└──╼ cat infinality.sh
#!/usr/bin/env bash
TARGET_DIR='/home/user/media/source_code'
# Install the basic requirement: Git and devscripts
sudo apt-get install git devscripts docbook-to-man -y
# Clone the repo
cd ${TARGET_DIR}
git clone https://github.com/cmpitg/infinality-debian-package.git
# Install and build dependencies
cd infinality-debian-package/freetype-infinality/
dpkg-checkbuilddeps
cd ../fontconfig-infinality/
dpkg-checkbuilddeps
# Then install them all
# Build the package
cd ../freetype-infinality/
./build.sh
cd ../fontconfig-infinality/
./build.sh
# Install all the .deb files
cd ../
sudo dpkg -i \
freetype-infinality/*.deb \
fontconfig-infinality/*.deb
лог
dh_auto_build: Compatibility levels before 9 are deprecated (level 8 in use)
dh_auto_test
dh_auto_test: Compatibility levels before 9 are deprecated (level 8 in use)
create-stamp debian/debhelper-build-stamp
fakeroot debian/rules binary
dh binary
dh: Compatibility levels before 9 are deprecated (level 8 in use)
dh_testroot
dh_prep
debian/rules override_dh_auto_install
make[1]: Entering directory '/home/user/media/source_code/infinality-debian-package/fontconfig-infinality/fontconfig-infinality-1'
#install -dm755 debian/fontconfig-infinality/etc/fonts/{conf.{avail,d},infinality/{conf.src,styles.conf.avail}}/
install -dm755 debian/fontconfig-infinality/etc/fonts/conf.avail/
install -dm755 debian/fontconfig-infinality/etc/fonts/conf.d/
install -dm755 debian/fontconfig-infinality/etc/fonts/infinality/conf.src/
install -dm755 debian/fontconfig-infinality/etc/fonts/infinality/styles.conf.avail/
install -m644 conf.avail/52-infinality.conf \
debian/fontconfig-infinality/etc/fonts/conf.avail/
install: cannot stat 'conf.avail/52-infinality.conf': No such file or directory
debian/rules:15: recipe for target 'override_dh_auto_install' failed
make[1]: *** [override_dh_auto_install] Error 1
make[1]: Leaving directory '/home/user/media/source_code/infinality-debian-package/fontconfig-infinality/fontconfig-infinality-1'
debian/rules:8: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
debuild: fatal error at line 1116:
dpkg-buildpackage -rfakeroot -us -uc -b failed
dpkg: error: cannot access archive 'fontconfig-infinality/*.deb': No such file or directory