summaryrefslogtreecommitdiff
path: root/libre/cowsay/PKGBUILD
blob: f92680b2a0f938835101f85382bab56a4bc62911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id$
# Maintainer (Arch): Guillaume ALAUX <guillaume@archlinux.org> 
# Contributor (Arch): Eric Belanger <eric@archlinux.org>
# Contributor (Arch): Sarah Hay <sarahhay@mb.sympatico.ca>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=cowsay
pkgver=3.03
pkgrel=9.parabola1
pkgdesc='Configurable talking cow (and a few other creatures), without nonfree cows'
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
}