libpaper: use make_dirs instead of .empty

This commit is contained in:
maxice8 2018-09-02 20:33:06 -03:00
parent e4da7222ad
commit e886db6e94
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

View file

@ -1,7 +1,7 @@
# Template file for 'libpaper'
pkgname=libpaper
version=1.1.24+nmu5
revision=1
revision=2
build_style=gnu-configure
hostmakedepends="automake libtool"
conf_files="/etc/papersize"
@ -11,6 +11,7 @@ license="GPL-2"
homepage="http://packages.debian.org/unstable/source/libpaper"
distfiles="${DEBIAN_SITE}/main/libp/${pkgname}/${pkgname}_${version}.tar.gz"
checksum=e29deda4cd7350189c71af0925cbf4a4473f9841d1419a922e1e8ff1954db1f2
make_dirs="/etc/libpaper.d 0755 root root"
pre_configure() {
autoreconf -fi
@ -21,10 +22,6 @@ post_install() {
vmkdir etc
echo '# Simply write the paper name. See papersize(5) for possible values' > ${DESTDIR}/etc/papersize
# add libpaper.d directory other packages can use to store files
vmkdir etc/libpaper.d
touch ${DESTDIR}/etc/libpaper.d/.empty
# add localisation
cd debian/po
for i in $(ls *.po); do