updated on Wed Jan 11 20:01:35 UTC 2012
[aur-mirror.git] / spfs / PKGBUILD
blob41546fb614751b77673b2196784fc699891d87f6
1 # Maintainer: Michal Kowalski <kowalski TOD michal TA gmail TOD com>
3 pkgname=spfs
4 pkgver=0.2
5 pkgrel=3
6 pkgdesc="Library for writing 9P2000 compliant user-space file servers that can be mounted using v9fs file system"
7 arch=('i686')
8 url="http://sourceforge.net/projects/npfs/"
9 license=('BSD')
10 depends=()
11 makedepends=()
12 optdepends=('plan9port: the whole, useless Plan 9 shabang')
13 provides=('v9fs-server')
14 backup=('etc/conf.d/spfs.conf')
15 source=("http://downloads.sourceforge.net/project/npfs/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz" README spfs-install.patch spfs-rc.script spfs-conf.script)
16 md5sums=('2ae13d7454f4b3c6c8501ad74a113e56' '50053e6039d205158cc43873bbe8b330' '9a66cb801a9c2826376fbeaf4486c298' '21f7cf0db27498849ca1d7a889ad393d' '4c6b70e8b34878e96a87c20d5f98247b')
18 build() {
19   cd "$srcdir/$pkgname"
20   patch -p1 < ../spfs-install.patch
22   make
25 package() {
26   cd "$srcdir/$pkgname"
28   make INSTALLPREFIX="$pkgdir/usr" install
30   mkdir -p "$pkgdir/etc/rc.d"
31   cp ${srcdir}/spfs-rc.script ${pkgdir}/etc/rc.d/spfs
32   chmod +x $pkgdir/etc/rc.d/spfs
33   mkdir -p "$pkgdir/etc/conf.d"
34   cp ${srcdir}/spfs-conf.script ${pkgdir}/etc/conf.d/spfs.conf
37 # vim:set ts=2 sw=2 et: