diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2017-03-04 23:40:44 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2017-03-04 23:41:32 -0300 |
commit | c4e79652b1fc64a58624ac87be99e84a32a92bca (patch) | |
tree | ae39a34aac0ce982de5ebde74b5463b6a43af5e9 /pcr/dontpanic/PKGBUILD | |
parent | 1341d8ab8b4fad89a560030f06df3671f1d64902 (diff) | |
download | abslibre-c4e79652b1fc64a58624ac87be99e84a32a92bca.tar.gz abslibre-c4e79652b1fc64a58624ac87be99e84a32a92bca.tar.bz2 abslibre-c4e79652b1fc64a58624ac87be99e84a32a92bca.zip |
dontpanic: add new package to [pcr]
Diffstat (limited to 'pcr/dontpanic/PKGBUILD')
-rw-r--r-- | pcr/dontpanic/PKGBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/pcr/dontpanic/PKGBUILD b/pcr/dontpanic/PKGBUILD new file mode 100644 index 000000000..10aaa3617 --- /dev/null +++ b/pcr/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/" +} + + |