summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD43
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c4d32ef6093
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = extract-artwork-git
+ pkgdesc = extract artwork from media files - git checkout
+ pkgver = 0.0.1.r0.g8003e63
+ pkgrel = 1
+ url = https://github.com/eworm-de/extract-artwork
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = markdown
+ depends = ffmpeg
+ provides = extract-artwork
+ conflicts = extract-artwork
+ source = git://github.com/eworm-de/extract-artwork.git
+ sha256sums = SKIP
+
+pkgname = extract-artwork-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8386072aa80
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Christian Hesse <mail@eworm.de>
+
+pkgname=extract-artwork-git
+pkgver=0.0.1.r0.g8003e63
+pkgrel=1
+pkgdesc='extract artwork from media files - git checkout'
+arch=('i686' 'x86_64')
+url='https://github.com/eworm-de/extract-artwork'
+depends=('ffmpeg')
+makedepends=('git' 'markdown')
+conflicts=('extract-artwork')
+provides=('extract-artwork')
+license=('GPL')
+source=('git://github.com/eworm-de/extract-artwork.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd extract-artwork/
+
+ if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
+ printf '%s.r%s.g%s' \
+ "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \
+ "$(git rev-list --count ${GITTAG}..)" \
+ "$(git log -1 --format='%h')"
+ else
+ printf '0.r%s.g%s' \
+ "$(git rev-list --count master)" \
+ "$(git log -1 --format='%h')"
+ fi
+}
+
+build() {
+ cd extract-artwork/
+
+ make
+}
+
+package() {
+ cd extract-artwork/
+
+ make DESTDIR="${pkgdir}" install
+}
+