void-packages/srcpkgs/plan9port/template

30 lines
834 B
Plaintext
Raw Normal View History

2014-07-01 23:00:08 +02:00
# Template file for 'plan9port'
pkgname=plan9port
version=20140306
revision=4
2014-07-01 23:00:08 +02:00
wrksrc=$pkgname
hostmakedepends="which perl"
makedepends="libX11-devel libXt-devel libXext-devel freetype-devel fontconfig-devel"
2014-07-01 23:00:08 +02:00
short_desc="Port of many Plan 9 programs to Unix-like operating systems"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
2014-11-23 15:38:38 +01:00
license="custom"
2014-07-01 23:00:08 +02:00
homepage="http://swtch.com/plan9port/"
2014-11-23 15:38:38 +01:00
distfiles="https://${pkgname}.googlecode.com/files/${pkgname}-${version}.tgz"
2014-07-01 23:00:08 +02:00
checksum=cbb826cde693abdaa2051c49e7ebf75119bf2a4791fe3b3229f1ac36a408eaeb
do_build() {
2014-11-23 15:38:38 +01:00
./INSTALL
2014-07-01 23:00:08 +02:00
}
do_install() {
2014-11-23 15:38:38 +01:00
xargs -a lib/moveplan9.files -d'\n' sed -i "s#$wrksrc#/opt/plan9#"
2014-07-01 23:00:08 +02:00
2014-11-23 15:38:38 +01:00
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} .xbps* .hg*
2014-07-01 23:00:08 +02:00
}