summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Mongeau2015-06-28 13:52:18 -0400
committerPhilippe Mongeau2015-06-28 13:54:20 -0400
commit2b34afae48142f485e1b85629b7aefebc64d1889 (patch)
tree5b4a4c616758e70534d7dde57e0b98f9aef6dcde
downloadaur-2b34afae48142f485e1b85629b7aefebc64d1889.tar.gz
initial import
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD42
-rw-r--r--ympd.install5
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a0f74b84975
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = ympd-git
+ pkgdesc = A standalone MPD Web GUI
+ pkgver = 1.2.3.r34.g7b05dc1
+ pkgrel = 1
+ url = http://www.ympd.org
+ install = ympd.install
+ arch = i686
+ arch = x86_64
+ arch = armv6h
+ license = GPL2
+ makedepends = cmake
+ makedepends = git
+ depends = glibc
+ depends = libmpdclient
+ optdepends = openssl: SSL support in libwebsockets webserver
+ provides = ympd
+ conflicts = ympd
+ backup = etc/default/ympd
+ source = git+https://github.com/notandy/ympd.git
+ sha1sums = SKIP
+
+pkgname = ympd-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..59a705909c9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Philippe Mongeau <ph.mongeau@gmail.com>
+
+pkgname=ympd-git
+_pkgname=ympd
+pkgver=1.2.3.r34.g7b05dc1
+pkgrel=1
+pkgdesc="A standalone MPD Web GUI"
+arch=('i686' 'x86_64' 'armv6h')
+url="http://www.ympd.org"
+license=('GPL2')
+depends=('glibc' 'libmpdclient')
+makedepends=('cmake' 'git')
+optdepends=('openssl: SSL support in libwebsockets webserver')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+install=("${_pkgname}.install")
+backup=('etc/default/ympd')
+source=(
+ "git+https://github.com/notandy/ympd.git"
+)
+sha1sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ git describe --long --tags | sed -E 's/^v//; s/([^-]*-g)/r\1/; s/-/./g'
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ mkdir -p build && cd build;
+ cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}/build"
+ make DESTDIR="$pkgdir/" install
+ install -Dm644 "${srcdir}/${_pkgname}/contrib/ympd.service" "$pkgdir/usr/lib/systemd/system/ympd.service"
+ install -Dm644 "${srcdir}/${_pkgname}/contrib/ympd.default" "$pkgdir/etc/default/ympd"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/ympd.install b/ympd.install
new file mode 100644
index 00000000000..68d8017c93b
--- /dev/null
+++ b/ympd.install
@@ -0,0 +1,5 @@
+post_upgrade(){
+ if [ -e "/etc/conf.d/ympd" ]; then
+ echo "WARNING: ympd config file /etc/cond.d/ympd should be moved to /etc/default/ympd"
+ fi
+}