summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Purkhiser2018-08-16 00:03:29 -0700
committerEvan Purkhiser2018-08-16 00:03:52 -0700
commit7aa2681dc72b8041aa39643f40ec6b768622006d (patch)
tree4887f4f734923a8fcc4bf013f3d53e545e4357b8
downloadaur-7aa2681dc72b8041aa39643f40ec6b768622006d.tar.gz
mutagen-git: Convert mutagen-hg -> mutagen-git
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD30
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..da68713d7df
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = mutagen-git
+ pkgdesc = An audio metadata tag reader and writer, mercurial version
+ pkgver = 1479.b15f1f4
+ pkgrel = 1
+ url = https://github.com/quodlibet/mutagen
+ arch = any
+ license = GPL2
+ depends = python-setuptools
+ provides = mutagen
+ conflicts = mutagen
+ source = mutagen-git::git+https://github.com/quodlibet/mutagen.git
+ md5sums = SKIP
+
+pkgname = mutagen-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b935a4c22f3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Evan Purkhiser <evanpurkhiser@gmail.com>
+
+pkgname=mutagen-git
+pkgdesc="An audio metadata tag reader and writer, mercurial version"
+license=('GPL2')
+url="https://github.com/quodlibet/mutagen"
+pkgver=1479.b15f1f4
+pkgrel=1
+
+conflicts=('mutagen')
+provides=('mutagen')
+
+source=("$pkgname::git+$url.git")
+md5sums=('SKIP')
+depends=('python-setuptools')
+makepends=('git')
+arch=('any')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+
+ python setup.py install --root="${pkgdir}"
+ install -d "${pkgdir}/usr/bin"
+ install -m755 tools/* "${pkgdir}/usr/bin"
+}