From aad42b6843bdecd3fed9a1da36f1c6d366cc99ac Mon Sep 17 00:00:00 2001 From: dai9ah Date: Mon, 19 Feb 2018 11:53:22 +0200 Subject: testing/mpdcron: new aport --- testing/mpdcron/APKBUILD | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 testing/mpdcron/APKBUILD diff --git a/testing/mpdcron/APKBUILD b/testing/mpdcron/APKBUILD new file mode 100644 index 0000000000..5d1654d7e0 --- /dev/null +++ b/testing/mpdcron/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: dai9ah +# Maintainer: dai9ah +pkgname=mpdcron +pkgver=0.3 +pkgrel=0 +pkgdesc="Cron-like daemon for mpd" +url="https://github.com/alip/mpdcron" +arch="all" +license="GPL-2.0-only" +makedepends="autoconf automake curl-dev glib-dev libdaemon-dev libmpdclient-dev + libnotify-dev libtool sqlite-dev + " +subpackages="$pkgname-doc + $pkgname-dev + $pkgname-zsh-completion:zshcomp:noarch + " +source="$pkgname-$pkgver.tar.gz::https://github.com/alip/$pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + ./autogen.sh + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --enable-gmodule \ + --with-standard-modules=all + make +} + +check() { + cd "$builddir"/src + ./mpdcron --help > /dev/null +} + +package() { + make DESTDIR="$pkgdir" -C "$builddir" install +} + +zshcomp() { + pkgdesc="Zsh completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + + mkdir -p "$subpkgdir"/usr/share/zsh/site-functions + install -Dm644 "$builddir"/zsh-completion/_* \ + "$subpkgdir"/usr/share/zsh/site-functions/ +} + +sha512sums="19c55d9edfeda7ecd317c449d195f90c3bda04f0d7a26cc6395b437f7d501e3ea8a00820367807e61c073ed6aa38bd69fc4948de8061cbbd20f7f393204d11e5 mpdcron-0.3.tar.gz" -- cgit v1.2.3