public
Created

heirloom-pkgtools-cvs PKGBUILD

  • Download Gist
PKGBUILD
Shell
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 33 34 35 36 37 38
# Contributor: Jens Staal <staal1978@gmail.com>
pkgname=heirloom-pkgtools-cvs
pkgver=111210
pkgrel=3
arch=('i686' 'x86_64')
pkgdesc="The Heirloom Packaging Tools is a port of SVR4 application packaging utilities from OpenSolaris"
url="http://heirloom.sourceforge.net/pkgtools.html"
license=('custom:"caldera"' 'custom:"opensolaris"')
depends=('heirloom-sh-cvs' 'heirloom-devtools-cvs' 'heirloom-cvs')
makedepends=('cvs')
source=('000-config.diff')
md5sums=('7ab977ec2bafe3b55fa9c56fe541e0d5')
 
_hmake() {
env PATH="/usr/heirloom/bin:$PATH" MAKEFLAGS="" make "$@"
}
 
build() {
cvs -d:pserver:anonymous:@heirloom.cvs.sourceforge.net:/cvsroot/heirloom login
cvs -d:pserver:anonymous:@heirloom.cvs.sourceforge.net:/cvsroot/heirloom co -P heirloom-pkgtools
 
cd $startdir/src/heirloom-pkgtools
 
patch -p1 < ../000-config.diff
 
_hmake
}
 
package() {
cd $startdir/src/heirloom-pkgtools
_hmake install ROOT=$startdir/pkg
 
mkdir -p ${startdir}/pkg/usr/share/licenses/${pkgname}/
mkdir -p ${startdir}/pkg/usr/share/licenses/
install -m0644 ${startdir}/src/heirloom-pkgtools/LICENSE/CALDERA.LICENSE ${startdir}/pkg/usr/share/licenses/${pkgname}/CALDERA.LICENSE
install -m0644 ${startdir}/src/heirloom-pkgtools/LICENSE/OPENSOLARIS.LICENSE ${startdir}/pkg/usr/share/licenses/${pkgname}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.