void-packages/srcpkgs/plan9port/template
2015-03-02 11:03:15 +01:00

30 lines
839 B
Bash

# Template file for 'plan9port'
pkgname=plan9port
version=20140306
revision=5
wrksrc=$pkgname
hostmakedepends="which perl"
makedepends="libX11-devel libXt-devel libXext-devel freetype-devel fontconfig-devel"
short_desc="Port of many Plan 9 programs to Unix-like operating systems"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://swtch.com/plan9port/"
distfiles="https://${pkgname}.googlecode.com/files/${pkgname}-${version}.tgz"
checksum=cbb826cde693abdaa2051c49e7ebf75119bf2a4791fe3b3229f1ac36a408eaeb
nocross=yes
do_build() {
./INSTALL
}
do_install() {
xargs -a lib/moveplan9.files -d'\n' sed -i "s#$wrksrc#/opt/plan9#"
vinstall $FILESDIR/plan9.sh 644 etc/profile.d
vlicense LICENSE
vmkdir opt
cp -a $wrksrc $DESTDIR/opt/plan9
cd $DESTDIR/opt/plan9
rm -r install.{log,sum} .hg*
}