summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAndrew Chen2015-12-10 16:24:16 +1300
committerAndrew Chen2015-12-10 16:24:16 +1300
commit00504d942d80c6287729e907e8035bf1958015ff (patch)
tree4aaa3bb93343dbdd9b78caa6700d332abb1146af /PKGBUILD
downloadaur-jefferson-git.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d4faeac91ea
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Andrew Chen <andrew.chuanye.chen@gmail.com>
+
+pkgname=jefferson-git
+_gitname=jefferson
+pkgver=0.2.r9.g78da2e6
+pkgrel=1
+pkgdesc="JFFS2 filesystem extraction tool"
+url="https://github.com/sviehb/jefferson"
+arch=('any')
+license=('MIT')
+depends=('python2' 'python2-cstruct' 'python2-pyliblzma')
+makedepends=('git')
+provides=('jefferson')
+conflicts=('jefferson')
+source=(git+https://github.com/sviehb/${_gitname}.git)
+md5sums=('SKIP')
+
+pkgver() {
+ cd $_gitname
+ printf "%s.r%s.g%s" "$(python2 setup.py --version)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd $_gitname
+ python2 setup.py build
+}
+
+package() {
+ cd $_gitname
+ python2 setup.py install -O1 --root="${pkgdir}"
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}