summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Brubeck Unhammer2015-07-14 10:24:08 +0200
committerKevin Brubeck Unhammer2015-07-14 10:24:08 +0200
commit5610b7769a4ade0a981bb0a19cb8a40af68b8810 (patch)
treece31f4049abb048dab33686e28105352d219dd48
downloadaur-5610b7769a4ade0a981bb0a19cb8a40af68b8810.tar.gz
Initial import
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD27
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..01aa5596f19
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = justext
+ pkgdesc = jusText removes boilerplate content (such as navigation links, headers, and footers) from HTML pages. Designed to preserve text with full sentences, it is suited for creating linguistic resources like Web corpora.
+ pkgver = 1.1
+ pkgrel = 1
+ url = https://code.google.com/p/justext/
+ arch = i686
+ arch = x86_64
+ license = New BSD License
+ depends = python2>=2.2.4
+ source = http://justext.googlecode.com/files/justext-1.1.tar.gz
+ md5sums = 120d33a917a6362c88dd546d4f354c47
+
+pkgname = justext
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..494bf73a5b2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Contributor: Kevin Brubeck Unhammer <unhammer@gmail.com>
+# Maintainer: Kevin Brubeck Unhammer <unhammer@gmail.com>
+pkgname=justext
+pkgver=1.1
+pkgrel=1
+pkgdesc="jusText removes boilerplate content (such as navigation links, headers, and footers) from HTML pages. Designed to preserve text with full sentences, it is suited for creating linguistic resources like Web corpora."
+url="https://code.google.com/p/justext/"
+arch=('i686' 'x86_64')
+license=('New BSD License')
+depends=('python2>=2.2.4')
+makedepends=()
+conflicts=()
+replaces=()
+backup=()
+install=
+source=("http://justext.googlecode.com/files/justext-1.1.tar.gz")
+md5sums=('120d33a917a6362c88dd546d4f354c47')
+build() {
+ cd $startdir/src/$pkgname-$pkgver
+
+ # From http://allanmcrae.com/2010/10/big-python-transition-in-arch-linux/
+ sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ $(find . -name '*.py')
+
+ python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+}