makedeb
Remake of Kenneth Louden’s "Tiny Machine" computer
Click here to go back to the commit logs for tisc-git.
Hash: 3a6cd75929474a19a109228804dc9b3cfc4ce741
Message: Move mkdir and touch
diff --git a/PKGBUILD b/PKGBUILD
index 90b94cb..4581a00 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -46,7 +46,11 @@ build() {
}
_shlibdeps() {
+ mkdir -p "$pkgdir/debian"
+ touch "$pkgdir/debian/control"
+
pushd "$pkgdir" &> /dev/null
+
dpkg-shlibdeps "$@" -O 2> /dev/null |\
sed "s/.*Depends=\(.*\)/\1/" |\
sed "s/, /\n/g" |\
@@ -60,7 +64,5 @@ package() {
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm755 bin/TISC "$pkgdir/usr/bin/TISC"
- mkdir -p "$pkgdir/debian"
- touch "$pkgdir/debian/control"
depends+=($(_shlibdeps "$pkgdir/usr/bin/TISC"))
}