summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..342d3e665bc3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Josip Ponjavic <josipponjavic at gmail dot com>
+# Contributor: Jan Magnus Brevik <janmbrevik@gmail.com>
+
+pkgname=gpodder-git
+pkgver=3.10.1.r36.g15617c5b
+pkgrel=1
+pkgdesc='A podcast receiver/catcher'
+license=('GPL3')
+arch=('any')
+url='http://gpodder.org/'
+depends=('hicolor-icon-theme' "python-"{cairo,dbus,gobject,mygpoclient,podcastparser})
+makedepends=('git' 'help2man' 'intltool')
+optdepends=('ffmpeg: transcode audio files to mp3/ogg'
+ 'gnome-bluetooth: transfer podcast via bluethooth'
+ 'lame: converting ogg to mp3'
+ 'libgpod: ipod sync support'
+ 'mutagen: audio tagging'
+ 'python-eyed3: mp3 player sync support'
+ 'python-html5lib: clickable links in GTK UI show notes'
+ 'webkit2gtk: HTML show notes')
+provides=("${pkgname%-*}")
+conflicts=("${pkgname%-*}")
+source=("${pkgname%-*}::git+https://github.com/gpodder/gpodder.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${pkgname%-*}"
+ git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+package() {
+ cd "${pkgname%-*}"
+
+ PYTHON=python DESTDIR=${pkgdir} make install
+
+ sed -i -e 's|#!/usr/bin/python$|#!/usr/bin/python|' \
+ -e 's|#!/usr/bin/env python$|#!/usr/bin/env python|' \
+ $(find $pkgdir/usr/lib/python3.6/site-packages/gpodder/ -name '*.py')
+}