updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / compfused / PKGBUILD
blobedbdd71198652a3d2e1c3cd7c0c2c9da967570d7
1 # Contributor: Francesc Ortiz <francescortiz@gmail.com>
2 pkgname=compfused
3 pkgver=200705823
4 pkgrel=1
5 pkgdesc="Fuse transparent compressed read-write for linux filesystems"
6 arch=()
7 url="http://parallel.vub.ac.be/~johan/compFUSEd/"
8 license=('GPL')
9 depends=(fuse bzip2 lzo lzo2 zlib)
10 makedepends=()
11 provides=()
12 conflicts=()
13 replaces=()
14 backup=()
15 install=
16 source=(http://parallel.vub.ac.be/~johan/compFUSEd/index.php/option/downloads/task/download/id/8)
17 noextract=()
18 md5sums=('b4322e48f102a8902ee031e17420b2e8')
20 build() {
21         cd $startdir/src
22         mv 8 cf-GISMO-200705823.tgz
23         tar xvzf cf-GISMO-200705823.tgz
24         cd $startdir/src/CompFused/Gismo
26         # fix etc paths to match arch linux
27         sed -i 's/\/usr\/local\/etc\//\/etc\/compFUSEd\//g' cf_defines.h || return 1
28         sed -i 's/\/usr\/local\/etc\//\/etc\/compFUSEd\//g' compFUSEd.conf || return 1
29         sed -i 's/\/usr\/local\/lib\//\/usr\/lib\/compfused\//g' compFUSEd.conf || return 1
31         make || return 1
32         # CREATES ERRORS!
33         #make cf_extract || return 1
34         
35         # binaries
36         mkdir -p $startdir/pkg/usr/sbin
37         cp $startdir/src/CompFused/Gismo/cf_main $startdir/pkg/usr/sbin || return 1
38         cp $startdir/src/CompFused/Gismo/cf_inspect $startdir/pkg/usr/sbin || return 1
39         cp $startdir/src/CompFused/Gismo/cf_fsinfo $startdir/pkg/usr/sbin || return 1
40         # CREATES ERRORS!
41         #cp $startdir/src/CompFused/Gismo/cf_extract $startdir/pkg/usr/sbin || return 1
43         # plugins
44         mkdir -p $startdir/pkg/usr/lib/compfused
45         cp $startdir/src/CompFused/Gismo/plugins/*.so $startdir/pkg/usr/lib/compfused || return 1
47         # conf
48         mkdir -p $startdir/pkg/etc/compFUSEd
49         cp $startdir/src/CompFused/Gismo/compFUSEd.conf $startdir/pkg/etc/compFUSEd || return 1