summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/hachoir-core/PKGBUILD25
-rw-r--r--pcr/hachoir-parser/PKGBUILD24
-rw-r--r--pcr/mat/PKGBUILD20
3 files changed, 69 insertions, 0 deletions
diff --git a/pcr/hachoir-core/PKGBUILD b/pcr/hachoir-core/PKGBUILD
new file mode 100644
index 000000000..618632915
--- /dev/null
+++ b/pcr/hachoir-core/PKGBUILD
@@ -0,0 +1,25 @@
+# Contributor: arno <apithon.AT.free.DOT.fr>
+# Contributor: Pierre Bourdon <delroth@gmail.com>
+# Maintainer: ianux <ianux AT free DOT fr>
+
+pkgname=hachoir-core
+pkgver=1.3.3
+pkgrel=4
+pkgdesc="A library written in Python which allows to see and edit a binary files field per field."
+arch=('any')
+url="http://bitbucket.org/haypo/hachoir/wiki/Home"
+license=('GPL2')
+depends=('python2')
+source=(http://cheeseshop.python.org/packages/source/h/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('b80f0257536e2b2cb23f66670c4f6f31')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ python2 setup.py build
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ python2 setup.py install --optimize=1 --root=${pkgdir}
+}
+
diff --git a/pcr/hachoir-parser/PKGBUILD b/pcr/hachoir-parser/PKGBUILD
new file mode 100644
index 000000000..7e982c93a
--- /dev/null
+++ b/pcr/hachoir-parser/PKGBUILD
@@ -0,0 +1,24 @@
+# Contributor: arno <apithon.AT.free.DOT.fr>
+# Contributor: Pierre Bourdon <delroth@gmail.com>
+# Maintainer: ianux <ianux AT free DOT fr>
+
+pkgname=hachoir-parser
+pkgver=1.3.4
+pkgrel=4
+pkgdesc="Most common file format parsers written using hachoir-core."
+arch=('any')
+url="http://bitbucket.org/haypo/hachoir/wiki/hachoir-parser"
+license=('GPL2')
+depends=('hachoir-core')
+source=(http://cheeseshop.python.org/packages/source/h/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('e578b779c4b30d94ca4e775747877755')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ python2 setup.py build
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ python2 setup.py install --optimize=1 --root=${pkgdir}
+}
diff --git a/pcr/mat/PKGBUILD b/pcr/mat/PKGBUILD
new file mode 100644
index 000000000..05e773ceb
--- /dev/null
+++ b/pcr/mat/PKGBUILD
@@ -0,0 +1,20 @@
+# Contributor: Francois Boulogne <fboulogne at april dot org>
+# Maintainer: Yardena Cohen <yardenack at gmail dot org>
+
+pkgname=mat
+pkgver=0.5.2
+pkgrel=1
+pkgdesc="Metadata anonymisation toolkit (git version)"
+arch=('any')
+url="https://mat.boum.org"
+license=('GPL2')
+depends=('python2-distutils-extra' 'python2' 'hachoir-core' 'hachoir-parser' 'python2-cairo' 'python2-poppler' 'python2-pdfrw' 'mutagen' 'python2-gobject')
+makedepends=('git')
+optdepends=('perl-image-exiftool: extended image support')
+source=("git+https://git.torproject.org/user/jvoisin/mat.git#tag=$pkgver")
+sha256sums=('SKIP')
+
+package() {
+ cd "${srcdir}/${pkgname}"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+}