summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a72cd36700c2cbb95373db4a3f75bb7f76eedd55 (plain)
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
# Maintainer: Fabian Maurer <dark.shadow4@web.de>

pkgname=sdfs
pkgver=3.1.7
pkgrel=2
pkgdesc="Deduplication file system from Opendedup"
arch=('x86_64')
url="http://opendedup.org"
license=('GPL2')
depends=('libxml2' 'java-environment' 'fuse')
source=('https://github.com/opendedup/sdfs/archive/3.1.7.zip'
              'mount.patch')
md5sums=('cdc1af3868c8a2660e16796fcee6f636'
                   'SKIP')

prepare() {
  cd ${srcdir}/$pkgname-$pkgver/install-packages/deb
  
  patch usr/share/sdfs/mount.sdfs < ${srcdir}/mount.patch
  
  ln -s /usr/lib/jvm/default-runtime  usr/share/sdfs/bin/jre
}

package() {
  cd ${srcdir}/$pkgname-$pkgver/install-packages/deb
  
  cp -dr --no-preserve=ownership etc ${pkgdir}
  cp -dr --no-preserve=ownership usr ${pkgdir}
  
  install -d ${pkgdir}/usr/bin/
   cp -dr --no-preserve=ownership sbin/* ${pkgdir}/usr/bin
}