wok-next annotate libpaper/receipt @ rev 20534

Clean default configure options when site script used.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 30 19:31:50 2018 +0300 (2018-03-30)
parents c4e53a39395a
children 5841522533ec
rev   line source
al@19787 1 # SliTaz package receipt v2.
pankso@12728 2
pankso@12728 3 PACKAGE="libpaper"
al@19787 4 VERSION="1.1.24+nmu5"
pankso@12728 5 CATEGORY="system-tools"
al@19787 6 SHORT_DESC="Library for handling paper characteristics"
pankso@12728 7 MAINTAINER="pankso@slitaz.org"
pascal@14716 8 LICENSE="GPL2"
al@19787 9 WEB_SITE="https://packages.debian.org/unstable/source/libpaper"
pankso@12728 10
al@19787 11 TARBALL="libpaper_$VERSION.tar.gz"
al@19787 12 WGET_URL="http://ftp.debian.org/debian/pool/main/libp/libpaper/$TARBALL"
al@19787 13
al@19787 14 BUILD_DEPENDS="automake libtool"
al@19787 15 SPLIT="libpaper-dev"
al@19787 16
al@20534 17 compile_rules() {
al@19787 18 autoreconf -fi &&
al@19787 19
al@19787 20 ./configure \
al@19787 21 --disable-static \
al@19787 22 $CONFIGURE_ARGS &&
al@20534 23 make &&
al@20534 24 make install || return 1
al@19787 25
al@20534 26 install -m755 $stuff/run-parts $install/usr/bin
al@20534 27 mkdir -p $install/etc
al@19787 28 echo 'a4' > $install/etc/papersize
pankso@12728 29 }
pankso@12728 30
al@20534 31 genpkg_rules() {
al@19787 32 case $PACKAGE in
al@19787 33 libpaper)
al@19787 34 copy @std
al@19787 35 CONFIG_FILES="/etc/papersize"
al@19787 36 ;;
al@19787 37 *-dev) copy @dev;;
al@19787 38 esac
pankso@12728 39 }
al@19787 40
al@19787 41 post_install_libpaper() {
al@19787 42 mkdir -p "$1/etc/libpaper.d"
al@19787 43 }