wok annotate libdevmapper/receipt @ rev 5012

rm rpm in for loop to save RAM (thanks Eric)
author Rohit Joshi <jozee@slitaz.org>
date Sun Feb 28 19:50:05 2010 +0000 (2010-02-28)
parents 74c908326808
children efd761ce4594
rev   line source
wcnagel@1031 1 # SliTaz package receipt.
wcnagel@1031 2
wcnagel@1031 3 PACKAGE="libdevmapper"
wcnagel@1031 4 VERSION="1.02.27"
wcnagel@1031 5 CATEGORY="system-tools"
wcnagel@1031 6 SHORT_DESC="Linux device mapper library."
b1+slitaz@1802 7 MAINTAINER="b1+slitaz@nagel.org"
wcnagel@1031 8 TARBALL="device-mapper.$VERSION.tgz"
wcnagel@1031 9 WEB_SITE="http://sourceware.org/dm/"
wcnagel@1031 10 WGET_URL="ftp://sources.redhat.com/pub/dm/$TARBALL"
wcnagel@1031 11
wcnagel@1031 12 # Rules to configure and make the package.
wcnagel@1031 13 compile_rules()
wcnagel@1031 14 {
wcnagel@1031 15 cd $WOK/$PACKAGE
wcnagel@1031 16 mv device-mapper.$VERSION $PACKAGE-$VERSION
wcnagel@1031 17 cd $src/lib
wcnagel@1031 18 sed 's/(INSTALL) -D/(INSTALL)/' < Makefile.in > tmp
wcnagel@1031 19 mv tmp Makefile.in
wcnagel@1031 20 cd $src
wcnagel@1031 21 ./configure --prefix=/usr $CONFIGURE_ARGS
wcnagel@1031 22 make
wcnagel@1031 23 mkdir -p $src/_pkg/usr/lib
wcnagel@1031 24 mkdir -p $src/_pkg/usr/include
wcnagel@1031 25 cd $src/lib
wcnagel@1031 26 make DESTDIR=$src/_pkg install
wcnagel@1031 27 }
wcnagel@1031 28
wcnagel@1031 29 # Rules to gen a SliTaz package suitable for Tazpkg.
wcnagel@1031 30 genpkg_rules()
wcnagel@1031 31 {
wcnagel@1031 32 mkdir -p $fs/usr/lib
wcnagel@1031 33 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
wcnagel@1031 34 strip -s $fs/usr/lib/*
wcnagel@1031 35 }