Added bzip2-1.0.5 template.

--HG--
extra : convert_revision : a95f241b33ba9592d2a82301c2ab9555d8063126
This commit is contained in:
Juan RP 2008-10-23 02:41:51 +02:00
parent 0970bc48d5
commit 6a22274980
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,20 @@
--- Makefile.orig 2008-10-23 01:37:56.000000000 +0200
+++ Makefile 2008-10-23 01:39:30.000000000 +0200
@@ -90,14 +90,13 @@ install: bzip2 bzip2recover
cp -f libbz2.a $(PREFIX)/lib
chmod a+r $(PREFIX)/lib/libbz2.a
cp -f bzgrep $(PREFIX)/bin/bzgrep
- ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep
- ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep
+ cd $(PREFIX)/bin && ln -s bzgrep bzegrep && ln -s bzgrep bzfgrep
chmod a+x $(PREFIX)/bin/bzgrep
cp -f bzmore $(PREFIX)/bin/bzmore
- ln -s -f $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless
+ cd $(PREFIX)/bin && ln -s bzmore bzless
chmod a+x $(PREFIX)/bin/bzmore
cp -f bzdiff $(PREFIX)/bin/bzdiff
- ln -s -f $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp
+ cd $(PREFIX)/bin && ln -s bzdiff bzcmp
chmod a+x $(PREFIX)/bin/bzdiff
cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1
chmod a+r $(PREFIX)/man/man1/bzgrep.1

12
templates/bzip2.tmpl Executable file
View file

@ -0,0 +1,12 @@
# Template build file for 'bzip2'.
pkgname=bzip2
version=1.0.5
patch_files="$pkgname-fix-install.diff"
distfiles="http://www.bzip.org/1.0.5/$pkgname-$version@.tar.gz"
build_style=gnu_makefile
make_build_target="-f Makefile-libbz2_so"
make_install_args="PREFIX=$XBPS_DESTDIR/$pkgname-$version/usr"
short_desc="The bzip2 compression library"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=f7bf5368309d76e5daf3a89d4d1bea688dac7780742e7a0ae1af19be9316fe22
long_desc=