summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 74bcb8f96a90bf8f46377f2e71d66a3b1ff7509a (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
# Maintainer: Étienne André <eti.andre@gmail.com>
pkgname='python-fusepy-git'
pkgver=2.0.4.r0.g0eafeb5
pkgrel=1
pkgdesc='Simple ctypes bindings for FUSE'
url='https://github.com/terencehonles/fusepy'
arch=('any')
license=('custom:ISCL')
depends=('fuse>=2.6' 'python')
makedepends=('python-setuptools')
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"
  python 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"
}