makedeb
A tool to reformat the output of latex and friends into readable messages.
Click here to go back to the commit logs for pplatex.
Hash: 01a2f8fc7f29c5ef9d09dcec0c8eb12a1510122a
Message: Move mkdir and touch
diff --git a/PKGBUILD b/PKGBUILD
index 81bd72c..e807fe1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -50,6 +50,9 @@ build() {
}
_shlibdeps() {
+ mkdir -p "$pkgdir/debian"
+ touch "$pkgdir/debian/control"
+
pushd "$pkgdir" &> /dev/null
dpkg-shlibdeps "$@" -O 2> /dev/null |\
sed "s/.*Depends=\(.*\)/\1/" |\
@@ -65,8 +68,5 @@ package() {
ln -s pplatex "$pkgdir/usr/bin/ppdflatex"
install -Dm755 src/ppluatex "$pkgdir/usr/bin/ppluatex"
- mkdir -p "$pkgdir/debian"
- touch "$pkgdir/debian/control"
- depends+=($(_shlibdeps usr/bin/pplatex))
- depends+=($(_shlibdeps usr/bin/ppluatex))
+ depends+=($(_shlibdeps "$pkgdir/usr/bin/pplatex"))
}