From ea21ab0bf8c50bfc91010a67dc3348bf4e86f342 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Thu, 24 Nov 2016 13:57:22 -0500 Subject: cowsay: add new package to [libre] --- libre/cowsay/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ libre/cowsay/cowsay.patch | 11 +++++++++++ 2 files changed, 43 insertions(+) create mode 100644 libre/cowsay/PKGBUILD create mode 100644 libre/cowsay/cowsay.patch (limited to 'libre') diff --git a/libre/cowsay/PKGBUILD b/libre/cowsay/PKGBUILD new file mode 100644 index 000000000..77689ca14 --- /dev/null +++ b/libre/cowsay/PKGBUILD @@ -0,0 +1,32 @@ +# $Id$ +# Maintainer (Arch): Guillaume ALAUX +# Contributor (Arch): Eric Belanger +# Contributor (Arch): Sarah Hay +# Maintainer: Omar Vega Ramos + +pkgname=cowsay +pkgver=3.03 +pkgrel=9.parabola1 +pkgdesc='Configurable talking cow (and a few other creatures)' +arch=('any') +url='http://www.nog.net/~tony/warez/' +license=('PerlArtistic' 'GPL') +depends=('perl') +#http://www.nog.net/~tony/warez/${pkgname}-${pkgver}.tar.gz +source=(http://http.debian.net/debian/pool/main/c/${pkgname}/${pkgname}_${pkgver}+dfsg1.orig.tar.gz + cowsay.patch) +sha256sums=('10bae895d9afb2d720d2211db58f396352b00fe1386c369ca3608cbf6497b839' + 'aa88442a31f01ffe5884b3ae974ed1ced23d860859d7f2234cdcd3ac437fc17f') + +build() { + cd ${srcdir}/${pkgname}-${pkgver}+dfsg1 + patch -p1 -i $srcdir/cowsay.patch + sed -i 's|/man/|/share/man/|' install.sh +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver}+dfsg1 + echo "${pkgdir}/usr" | ./install.sh + # This one is not a valid '.cow' file + rm ${pkgdir}/usr/share/cows/mech-and-cow +} diff --git a/libre/cowsay/cowsay.patch b/libre/cowsay/cowsay.patch new file mode 100644 index 000000000..299d52895 --- /dev/null +++ b/libre/cowsay/cowsay.patch @@ -0,0 +1,11 @@ +--- cowsay-3.03/install.sh 1999-11-01 21:19:21.000000000 +0100 ++++ cowsay-3.03-new/install.sh 2003-08-15 17:14:23.000000000 +0200 +@@ -67,7 +67,7 @@ + echo Okay, time to install this puppy. + + echo s,%BANGPERL%,!$usethisperl,\; > install.pl +-echo s,%PREFIX%,$PREFIX,\; >> install.pl ++echo s,%PREFIX%,/usr,\; >> install.pl + set -x + mkdir -p $PREFIX/bin || (mkdir $PREFIX; mkdir $PREFIX/bin) + $usethisperl -p install.pl cowsay > $PREFIX/bin/cowsay -- cgit v1.2.3