wkhtmltopdf: fix moving dirs to /usr
This commit is contained in:
parent
0611e8fcde
commit
b731bcc5f1
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'wkhtmltopdf'
|
||||
pkgname=wkhtmltopdf
|
||||
version=0.12.4
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=qmake
|
||||
hostmakedepends="qt5-qmake"
|
||||
makedepends="qt5-xmlpatterns-devel qt5-svg-devel qt5-webkit-devel"
|
||||
|
@ -18,10 +18,11 @@ if [ -n "$CROSS_BUILD" ]; then
|
|||
fi
|
||||
|
||||
post_install() {
|
||||
mkdir -p $DESTDIR/usr
|
||||
dirs="bin lib share include"
|
||||
for dir in $dirs; do
|
||||
mv $DESTDIR/$dir $DESTDIR/usr/$dir
|
||||
local dir
|
||||
vmkdir usr
|
||||
for dir in bin lib share include; do
|
||||
[ -e $DESTDIR/usr/$dir ] && rmdir $DESTDIR/usr/$dir
|
||||
mv -v $DESTDIR/$dir $DESTDIR/usr/$dir
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue