summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd3a5b804b0b4c3c4535bf3672745d857fc63091 (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
# Maintainer: Uncle Hunto <unclehunto äτ ÝãΗ00 Ð0τ ÇÖΜ>
# Contributor: É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')
provides=('fusepy' 'python-fusepy')
conflicts=('fusepy' 'python-fusepy' 'python2-fusepy' 'python2-fusepy-git')
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"
}