summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2015-06-09 11:41:58 -0700
committerAndy Weidenbaum2015-06-09 11:41:58 -0700
commit7275b6f579a7fd3c1c5aa6c662481d0efdf27395 (patch)
tree20e8e345299909807ea09478a0b4f6f712d99598
downloadaur-7275b6f579a7fd3c1c5aa6c662481d0efdf27395.tar.gz
Initial import
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD44
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8dff332d215
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = python2-ethereum-serpent
+ pkgdesc = Serpent compiler, installed as a Python module
+ pkgver = 1.8.2
+ pkgrel = 1
+ url = https://www.ethereum.org
+ arch = i686
+ arch = x86_64
+ groups = ethereum
+ license = WTFPL
+ makedepends = gcc
+ makedepends = make
+ makedepends = python2-setuptools
+ depends = python2
+ options = !emptydirs
+ source = https://pypi.python.org/packages/source/e/ethereum-serpent/ethereum-serpent-1.8.2.tar.gz
+ md5sums = f57b94d8f1a7d42b38de748440b83eaa
+ sha256sums = ca5248d260d62f909fcc696466b0523d1e21a7e60dcbee425e9cafe9eef01b87
+
+pkgname = python2-ethereum-serpent
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bf46cb497dd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=python2-ethereum-serpent
+pkgver=1.8.2
+pkgrel=1
+pkgdesc="Serpent compiler, installed as a Python module"
+arch=('i686' 'x86_64')
+depends=('python2')
+makedepends=('gcc' 'make' 'python2-setuptools')
+groups=('ethereum')
+url="https://www.ethereum.org"
+license=('WTFPL')
+options=(!emptydirs)
+source=(https://pypi.python.org/packages/source/e/${pkgname#python2-}/${pkgname#python2-}-$pkgver.tar.gz)
+md5sums=('f57b94d8f1a7d42b38de748440b83eaa')
+sha256sums=('ca5248d260d62f909fcc696466b0523d1e21a7e60dcbee425e9cafe9eef01b87')
+
+prepare() {
+ cd "$srcdir/${pkgname#python2-}-$pkgver"
+
+ msg 'Fixing Makefile...'
+ sed -i "s@/usr/local@/usr@g" Makefile
+
+ msg 'Fixing Python version...'
+ find . -type f -print0 | xargs -0 sed -i 's#/usr/bin/python#/usr/bin/python2#g'
+ find . -type f -print0 | xargs -0 sed -i 's#/usr/bin/env python#/usr/bin/env python2#g'
+}
+
+build() {
+ cd "$srcdir/${pkgname#python2-}-$pkgver"
+
+ msg 'Building...'
+ python2 setup.py build
+}
+
+package() {
+ cd "$srcdir/${pkgname#python2-}-$pkgver"
+
+ msg 'Installing...'
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ msg 'Removing conflicting serpent binary...'
+ rm -f "$pkgdir/usr/bin/serpent"
+}