summaryrefslogtreecommitdiff
path: root/pcr-testing/dontpanic
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-03-06 00:24:24 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-03-06 00:33:03 -0300
commita7a8be267bdbb2be1ce704440aac590c25803b11 (patch)
tree842c33ed11d904c1534a3e2ed0561271f690152b /pcr-testing/dontpanic
parentba7c53f04daf69a56ad6c235f88ba4f0f09309b6 (diff)
downloadabslibre-a7a8be267bdbb2be1ce704440aac590c25803b11.tar.gz
abslibre-a7a8be267bdbb2be1ce704440aac590c25803b11.tar.bz2
abslibre-a7a8be267bdbb2be1ce704440aac590c25803b11.zip
dontpanic: move package to [pcr-testing] since it's unstable
Diffstat (limited to 'pcr-testing/dontpanic')
-rw-r--r--pcr-testing/dontpanic/PKGBUILD61
1 files changed, 61 insertions, 0 deletions
diff --git a/pcr-testing/dontpanic/PKGBUILD b/pcr-testing/dontpanic/PKGBUILD
new file mode 100644
index 000000000..10aaa3617
--- /dev/null
+++ b/pcr-testing/dontpanic/PKGBUILD
@@ -0,0 +1,61 @@
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+pkgname=dontpanic
+pkgver=2.0
+pkgrel=1
+pkgdesc="Dontpanic is a python app to look for any movie or serie and watch them in 'streaming'. It looks like popcorntime, but doesn't depend of a centralized api."
+arch=(any)
+url=http://3hg.toile-libre.org/dontpanic/index.html
+license=(MIT)
+depends=('python-bottle' 'python-requests' 'python-beautifulsoup4' 'sqlite' 'libtorrent-rasterbar')
+optdepends=('python-cherrypy: for server mode')
+makedepends=('git')
+replaces=(popcorntime)
+conflicts=(popcorntime)
+provides=(popcorntime)
+source=("$pkgname.tgz::http://3hg.toile-libre.org/dontpanic/downloads/dontpanic-latest.tgz")
+sha256sums=('a79fc5d008cfc1f46da430ea56c19c39ab4128a8c93d95554b77b395dede54c3')
+
+prepare() {
+ cd "${srcdir}/$pkgname"
+ sed -i 's|python3.4|python|' $pkgname
+ sed -i 's|python3|python|' $pkgname
+ sed -i 's|torent|torrent|' $pkgname.desktop
+}
+
+package() {
+ install -dm755 "$pkgdir/usr/bin"
+ install -dm755 "$pkgdir/usr/share"
+ install -dm755 "$pkgdir/usr/share/$pkgname/"
+ install -dm755 "$pkgdir/usr/share/$pkgname/dontpanic/"
+ install -dm755 "$pkgdir/usr/share/$pkgname/static/"
+ install -dm755 "$pkgdir/usr/share/$pkgname/views/"
+ install -dm755 "$pkgdir/usr/share/man/man1/"
+
+ cd "${srcdir}/$pkgname/src/"
+ for _file in *.py; do
+ install -D -m 644 $_file "$pkgdir/usr/share/$pkgname/"
+ done
+
+ cd "${srcdir}/$pkgname/src/dontpanic/"
+ for _file in *.py; do
+ install -D -m 644 $_file "$pkgdir/usr/share/$pkgname/dontpanic/"
+ done
+
+ cd "${srcdir}/$pkgname/src/static/"
+ for _file in *.png *.ico *.css; do
+ install -D -m 644 $_file "$pkgdir/usr/share/$pkgname/static/"
+ done
+
+ cd "${srcdir}/$pkgname/src/views/"
+ for _file in *.tpl; do
+ install -D -m 644 $_file "$pkgdir/usr/share/$pkgname/views/"
+ done
+
+ install -D -m 755 "${srcdir}/$pkgname/dontpanic" "$pkgdir/usr/bin/dontpanic"
+ install -Dm644 "${srcdir}/$pkgname/src/dontpanic.png" "$pkgdir/usr/share/pixmaps/dontpanic.png"
+ install -Dm644 "${srcdir}/$pkgname/dontpanic.desktop" "$pkgdir/usr/share/applications/dontpanic.desktop"
+ install -Dm644 "${srcdir}/$pkgname/dontpanic.1.gz" "$pkgdir/usr/share/man/man1/"
+}
+
+