summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Krause2015-06-13 11:57:36 +0200
committerChristian Krause2015-06-13 11:57:36 +0200
commitaca169a8d2c7daf52ca7f83edeceb7d34326b0b0 (patch)
treeea9261c2b4864d29aaa8afcb80f63d6d35093b20
downloadaur-aca169a8d2c7daf52ca7f83edeceb7d34326b0b0.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD36
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2ccf7a91782
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = python2-cutadapt
+ pkgdesc = trim adapters from high-throughput sequencing reads
+ pkgver = 1.8
+ pkgrel = 1
+ url = http://code.google.com/p/cutadapt/
+ arch = i686
+ arch = x86_64
+ license = custom
+ depends = python2
+ provides = cutadapt
+ conflicts = python-cutadapt
+ source = https://pypi.python.org/packages/source/c/cutadapt/cutadapt-1.8.tar.gz
+ md5sums = 73cc9c52d1b14883c24a4c29b16e0b61
+
+pkgname = python2-cutadapt
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2fc79e0684f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Christian Krause ("wookietreiber") <kizkizzbangbang@googlemail.com>
+
+_pkgname=cutadapt
+pkgname=python2-$_pkgname
+pkgver=1.8
+pkgrel=1
+pkgdesc='trim adapters from high-throughput sequencing reads'
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/$_pkgname/"
+license=('custom')
+depends=('python2')
+source=("https://pypi.python.org/packages/source/c/$_pkgname/$_pkgname-$pkgver.tar.gz")
+md5sums=('73cc9c52d1b14883c24a4c29b16e0b61')
+provides=('cutadapt')
+conflicts=('python-cutadapt')
+
+prepare() {
+ cd $srcdir/$_pkgname-$pkgver
+
+ sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+ -i cutadapt/scripts/cutadapt.py
+}
+
+package() {
+ cd $srcdir/$_pkgname-$pkgver
+
+ python2 setup.py build
+}
+
+package() {
+ cd $srcdir/$_pkgname-$pkgver
+
+ python2 setup.py install --root=$pkgdir --optimize=1
+
+ install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}