wok-next annotate libpaper/receipt @ rev 20595
More fix libtool.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Apr 16 11:36:31 2018 +0300 (2018-04-16) |
parents | 757d032c55c7 |
children | 63ae365eb07d |
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@20595 | 23 fix libtool && |
al@20534 | 24 make && |
al@20534 | 25 make install || return 1 |
al@19787 | 26 |
al@20534 | 27 install -m755 $stuff/run-parts $install/usr/bin |
al@20534 | 28 mkdir -p $install/etc |
al@19787 | 29 echo 'a4' > $install/etc/papersize |
pankso@12728 | 30 } |
pankso@12728 | 31 |
al@20534 | 32 genpkg_rules() { |
al@19787 | 33 case $PACKAGE in |
al@19787 | 34 libpaper) |
al@19787 | 35 copy @std |
al@19787 | 36 CONFIG_FILES="/etc/papersize" |
al@19787 | 37 ;; |
al@19787 | 38 *-dev) copy @dev;; |
al@19787 | 39 esac |
pankso@12728 | 40 } |
al@19787 | 41 |
al@19787 | 42 post_install_libpaper() { |
al@19787 | 43 mkdir -p "$1/etc/libpaper.d" |
al@19787 | 44 } |