makedeb


pplatex 1.0.rc3-2


A tool to reformat the output of latex and friends into readable messages.

Click here to go back to the commit logs for pplatex.

Commit:


Hash: 01a2f8fc7f29c5ef9d09dcec0c8eb12a1510122a

Message: Move mkdir and touch

Diff


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"))
 }