From e8839e6d0d2b90551f5b71adfe0da46ea450e3bc Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 8 Apr 2015 16:23:16 +0200 Subject: [PATCH] New package: libpaper-1.1.24+nmu2. --- common/shlibs | 1 + srcpkgs/libpaper-devel | 1 + srcpkgs/libpaper/template | 41 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 120000 srcpkgs/libpaper-devel create mode 100644 srcpkgs/libpaper/template diff --git a/common/shlibs b/common/shlibs index bcf3a4aea3..271880c4bc 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1975,3 +1975,4 @@ libOpenImageIO_Util.so.1.5 openimageio-1.5.13_1 libOpenImageIO.so.1.5 openimageio-1.5.13_1 libOpenColorIO.so.1 opencolorio-1.0.8_1 libyaml-cpp.so.0.5 yaml-cpp-0.5.2_1 +libpaper.so.1 libpaper-1.1.24_1 diff --git a/srcpkgs/libpaper-devel b/srcpkgs/libpaper-devel new file mode 120000 index 0000000000..c6d8234014 --- /dev/null +++ b/srcpkgs/libpaper-devel @@ -0,0 +1 @@ +libpaper \ No newline at end of file diff --git a/srcpkgs/libpaper/template b/srcpkgs/libpaper/template new file mode 100644 index 0000000000..19f5bfc098 --- /dev/null +++ b/srcpkgs/libpaper/template @@ -0,0 +1,41 @@ +# Template file for 'libpaper' +pkgname=libpaper +version=1.1.24+nmu2 +revision=1 +build_style=gnu-configure +conf_files="/etc/papersize" +configure_args="--sbindir=/usr/bin" +short_desc="Library for handling paper characteristics" +maintainer="Juan RP " +license="GPL-2" +homepage="http://packages.debian.org/unstable/source/libpaper" +distfiles="${DEBIAN_SITE}/main/libp/${pkgname}/${pkgname}_${version}.tar.gz" +checksum=c5bdd6d9dff179699160675dbb61651d9b3158f6da27558fdaba00e7c427ba96 + +post_install() { + # add systemwide default papersize read by many office applications + 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 + install -dm755 ${DESTDIR}/usr/share/locale/${i%.po}/LC_MESSAGES/; + msgfmt $i -o ${DESTDIR}/usr/share/locale/${i%.po}/LC_MESSAGES/${pkgname}.mo; + done +} + +libpaper-devel_package() { + depends="${sourcepkg}-${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + vmove usr/share/man/man3 + } +}