wok-next diff libpaper/receipt @ rev 20219

memtest: shrink
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 05 13:03:25 2017 +0100 (2017-11-05)
parents 412cfae4a54c
children c4e53a39395a
line diff
     1.1 --- a/libpaper/receipt	Wed Apr 09 11:39:21 2014 +0200
     1.2 +++ b/libpaper/receipt	Sun Nov 05 13:03:25 2017 +0100
     1.3 @@ -1,29 +1,48 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="libpaper"
     1.8 -VERSION="1.1.24"
     1.9 +VERSION="1.1.24+nmu5"
    1.10  CATEGORY="system-tools"
    1.11 -SHORT_DESC="Library for handling paper characteristics."
    1.12 +SHORT_DESC="Library for handling paper characteristics"
    1.13  MAINTAINER="pankso@slitaz.org"
    1.14  LICENSE="GPL2"
    1.15 -TARBALL="${PACKAGE}_$VERSION+nmu1.tar.gz"
    1.16 -WEB_SITE="http://packages.debian.org/unstable/source/libpaper"
    1.17 -WGET_URL="http://ftp.de.debian.org/debian/pool/main/libp/libpaper/$TARBALL"
    1.18 +WEB_SITE="https://packages.debian.org/unstable/source/libpaper"
    1.19  HOST_ARCH="i486 arm"
    1.20  
    1.21 +TARBALL="libpaper_$VERSION.tar.gz"
    1.22 +WGET_URL="http://ftp.debian.org/debian/pool/main/libp/libpaper/$TARBALL"
    1.23 +
    1.24 +BUILD_DEPENDS="automake libtool"
    1.25 +SPLIT="libpaper-dev"
    1.26 +
    1.27  # Rules to configure and make the package.
    1.28  compile_rules()
    1.29  {
    1.30 -	cd $src
    1.31 -	./configure $CONFIGURE_ARGS &&
    1.32 -	make && make install
    1.33 +	autoreconf -fi &&
    1.34 +
    1.35 +	./configure \
    1.36 +		--sysconfdir=/etc \
    1.37 +		--disable-static \
    1.38 +		$CONFIGURE_ARGS &&
    1.39 +	make && make install &&
    1.40 +
    1.41 +	install -m755 $stuff/run-parts $install/usr/bin &&
    1.42 +	mkdir -p $install/etc &&
    1.43 +	echo 'a4' > $install/etc/papersize
    1.44  }
    1.45  
    1.46  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.47  genpkg_rules()
    1.48  {
    1.49 -	mkdir -p $fs/usr/lib
    1.50 -	cp -a $install/usr/bin $fs/usr
    1.51 -	cp -a $install/usr/sbin $fs/usr
    1.52 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.53 +	case $PACKAGE in
    1.54 +		libpaper)
    1.55 +			copy @std
    1.56 +			CONFIG_FILES="/etc/papersize"
    1.57 +			;;
    1.58 +		*-dev) copy @dev;;
    1.59 +	esac
    1.60  }
    1.61 +
    1.62 +post_install_libpaper() {
    1.63 +	mkdir -p "$1/etc/libpaper.d"
    1.64 +}