summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb081a1e7357b5ef0e7e7d1f15ce1cf30e09bb10 (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
# Maintainer: Nidhogg
pkgname='python2-fusepy-git'
pkgver=2.0.2.r1.g27d76e4
pkgrel=1
pkgdesc='Simple ctypes bindings for FUSE'
arch=('any')
license=('custom:ISCL')
url="https://github.com/terencehonles/fusepy"
depends=('fuse>=2.6' 'python2')
makedepends=('python2-setuptools')
conflicts=('python2-fuse')
source=('git+https://github.com/terencehonles/fusepy.git')
md5sums=('SKIP')

pkgver() {
  cd fusepy
  git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

package() {
  cd "${srcdir}/fusepy"
  python2 setup.py install --root="$pkgdir/" --optimize=1

  sed -n '/Copyright/,/ THIS SOFTWARE[.]/p' fuse.py > LICENSE
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}