summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian 'Swift Geek' Grzywna2017-06-25 21:39:19 +0200
committerSebastian 'Swift Geek' Grzywna2017-06-25 21:39:19 +0200
commit879edaf9173f7212a662df63b95a755cc5786130 (patch)
tree1aa88d00322d63ca03a798afc59ca28aeba91e95
downloadaur-879edaf9173f7212a662df63b95a755cc5786130.tar.gz
Initial commit
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD37
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a3ef0ace23e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+# Generated by mksrcinfo v8
+# Sun Jun 25 19:38:42 UTC 2017
+pkgbase = magnetico-git
+ pkgdesc = Autonomous (self-hosted) BitTorrent DHT search engine suite
+ pkgver = a
+ pkgrel = 1
+ url = http://labs.boramalper.org/magnetico/
+ arch = any
+ license = AGPLv3
+ makedepends = python-setuptools
+ depends = python-uvloop
+ depends = python-humanfriendly
+ depends = python-better-bencode
+ depends = python-gevent
+ depends = python-flask
+ provides = magnetico
+ options = !strip
+ source = git://github.com/boramalper/magnetico
+ sha256sums = SKIP
+
+pkgname = magnetico-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fb770c971f6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+pkgname=magnetico-git
+_pkgname=magnetico
+pkgver=a
+pkgrel=1
+pkgdesc="Autonomous (self-hosted) BitTorrent DHT search engine suite"
+arch=('any')
+options=('!strip')
+url="http://labs.boramalper.org/magnetico/"
+license=('AGPLv3')
+depends=('python-uvloop' 'python-humanfriendly' 'python-better-bencode' 'python-gevent' 'python-flask')
+makedepends=('python-setuptools')
+provides=('magnetico')
+source=("git://github.com/boramalper/magnetico")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git rev-parse --short HEAD # Fix to better comply with github display
+}
+
+build() {
+ cd "$srcdir/$_pkgname/magneticod"
+ python setup.py build
+
+ cd "$srcdir/$_pkgname/magneticow"
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/$_pkgname/magneticod"
+ python setup.py install --root="$pkgdir/" --optimize=1
+
+ cd "$srcdir/$_pkgname/magneticow"
+ python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et: