summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a4445708ec10a66ade15366f6116d3b58929fca (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
# Contributor: Andrew Chen <andrew.chuanye.chen@gmail.com>
_base=jefferson
pkgname=${_base}-git
pkgver=0.4.1.r1.g860053f
pkgrel=1
pkgdesc="JFFS2 filesystem extraction tool"
url="https://github.com/sviehb/${_base}"
arch=(any)
license=(MIT)
depends=(python-cstruct python-lzo)
makedepends=(python-setuptools git)
provides=(${_base})
conflicts=(${_base})
source=(git+${url}.git)
sha512sums=('SKIP')

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

build() {
  cd ${_base}
  python setup.py build
}

package() {
  cd ${_base}
  python setup.py install --root="${pkgdir}"
  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}