updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / heirloom-cvs / PKGBUILD
blob93593b2a8bb150918048e022e41ee145fef0f405
1 # Contributor: Jens Staal <staal1978@gmail.com>
2 # Contributor: Sascha Biermmanns <saschakb at gmail dot com>
3 pkgname=heirloom-cvs
4 pkgver=2011.06.22
5 pkgrel=1
6 arch=('i686' 'x86_64')
7 pkgdesc="The Heirloom Toolchest of standard UNIX utilities, derived from original UNIX tools"
8 url="http://heirloom.sourceforge.net/tools.html"
9 license=('custom:"opensolaris"' 'custom:"lucent"')
10 depends=('heirloom-sh-cvs' 'heirloom-devtools-cvs')
11 makedepends=('cvs' 'bc')
12 source=('000-config.diff' '001-staticdep.diff' '002-nowhat.diff' 'makefile.patch')
13 md5sums=('f9be8f1cc57f87425b39414a7db06543'
14          '115355b6058592f9ba16a1c011f27ecd'
15          '7394fc957b4fe5a58e4f43d7e283e96b' '9112b52fddffa66cd464eeecd0109a21')
17 _hmake() {
18         env PATH="/usr/heirloom/bin:$PATH" MAKEFLAGS="" make "$@"
21 build() {
22   cvs -d:pserver:anonymous:@heirloom.cvs.sourceforge.net:/cvsroot/heirloom login
24   cvs -d:pserver:anonymous:@heirloom.cvs.sourceforge.net:/cvsroot/heirloom co -P heirloom
26   rm -rf $srcdir/build
27   cp -ar $srcdir/heirloom $srcdir/build
28   cd $srcdir/build
30   patch -p1 < ../000-config.diff
31   patch -p1 < ../001-staticdep.diff
32   patch -p1 < ../002-nowhat.diff
33   patch $srcdir/build/makefile -i $srcdir/makefile.patch
35   _hmake 
38 package() {
39   cd $srcdir/build
41   _hmake install ROOT="$pkgdir"
43   mkdir -p $startdir/pkg/usr/share/licenses/$pkgname/
44   install -m0644 ${startdir}/src/heirloom/LICENSE/LICENSE ${startdir}/pkg/usr/share/licenses/${pkgname}/LICENSE
45   install -m0644 ${startdir}/src/heirloom/LICENSE/OPENSOLARIS.LICENSE ${startdir}/pkg/usr/share/licenses/${pkgname}/OPENSOLARIS.LICENSE
46   install -m0644 ${startdir}/src/heirloom/LICENSE/LUCENT ${startdir}/pkg/usr/share/licenses/${pkgname}/LUCENT