summaryrefslogtreecommitdiffstats
path: root/bzip2/Pkgfile
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-21 00:16:39 +0100
committerLukc <lukc@upyum.com>2010-12-21 00:16:39 +0100
commite630a0da35de63ab002de0219551c0445364236b (patch)
treec1e82da56e5f39643f5f078681bad152a75ec795 /bzip2/Pkgfile
parentbc348ceacdfa3bc03371a9dce14271c17a9f9321 (diff)
downloadbase-e630a0da35de63ab002de0219551c0445364236b.tar.gz
base-e630a0da35de63ab002de0219551c0445364236b.tar.bz2
base-e630a0da35de63ab002de0219551c0445364236b.tar.xz
base-e630a0da35de63ab002de0219551c0445364236b.zip
Mise à jour de la recette de bzip2.
Diffstat (limited to 'bzip2/Pkgfile')
-rw-r--r--bzip2/Pkgfile30
1 files changed, 19 insertions, 11 deletions
diff --git a/bzip2/Pkgfile b/bzip2/Pkgfile
index ac9a271..e124ee2 100644
--- a/bzip2/Pkgfile
+++ b/bzip2/Pkgfile
@@ -1,19 +1,27 @@
-description="Very high-quality data compression program"
-packager=""
-maintainer="CRUX System Team, core-ports at crux dot nu"
+description="Very high-quality data compression program."
+packager="CRUX System Team <core-ports AT crux DOT nu>"
+maintainer="Lukc <lukc AT upyum DOT com>"
url="http://www.bzip.org/"
depends=()
name=bzip2
version=1.0.6
release=1
-source=(http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz bzip2.patch)
+source=(http://www.bzip.org/$version/$name-$version.tar.gz bzip2.patch)
build ()
-{
- cd $name-$version;
- patch -Np1 -i $SRC/$name.patch;
- make;
- make PREFIX=$PKG/usr install;
- make -f Makefile-libbz2_so;
- make -f Makefile-libbz2_so PREFIX=$PKG/usr install
+{
+ local makeopts=(
+ ${CTARGET:+CC=${CTARGET}-gcc}
+ ${CTARGET:+AR=${CTARGET}-ar}
+ ${CTARGET:+RANLIB=${CTARGET}-ranlib}
+ ${CTARGET:+LD=${CTARGET}-ld}
+ )
+ cd $name-$version;
+ patch -Np1 -i $SRC/$name.patch;
+ sed -i -e "/all:/ s| test||" Makefile;
+ sed -i -e "s|/man|${mandir/$prefix}|g" Makefile;
+ make ${makeopts[@]};
+ make PREFIX=$PKG$prefix MANDIR=$PKG$mandir install;
+ make -f Makefile-libbz2_so ${makeopts};
+ make -f Makefile-libbz2_so PREFIX=$PKG$prefix MANDIR=$PKG$mandir install
}