Skip to content
Snippets Groups Projects
Commit 623e19f0 authored by Leo's avatar Leo
Browse files

testing/mpdcron: modernize

parent 7f2ccecd
No related merge requests found
...@@ -4,6 +4,7 @@ pkgname=mpdcron ...@@ -4,6 +4,7 @@ pkgname=mpdcron
pkgver=0.3 pkgver=0.3
pkgrel=0 pkgrel=0
pkgdesc="Cron-like daemon for mpd" pkgdesc="Cron-like daemon for mpd"
options="!check" # No testsuite
url="https://github.com/alip/mpdcron" url="https://github.com/alip/mpdcron"
arch="all" arch="all"
license="GPL-2.0-only" license="GPL-2.0-only"
...@@ -12,14 +13,16 @@ makedepends="autoconf automake curl-dev glib-dev libdaemon-dev libmpdclient-dev ...@@ -12,14 +13,16 @@ makedepends="autoconf automake curl-dev glib-dev libdaemon-dev libmpdclient-dev
" "
subpackages="$pkgname-doc subpackages="$pkgname-doc
$pkgname-dev $pkgname-dev
$pkgname-zsh-completion:zshcomp:noarch $pkgname-zsh-completion
" "
source="$pkgname-$pkgver.tar.gz::https://github.com/alip/$pkgname/archive/v$pkgver.tar.gz" source="$pkgname-$pkgver.tar.gz::https://github.com/alip/mpdcron/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build() { prepare() {
cd "$builddir" default_prepare
./autogen.sh ./autogen.sh
}
build() {
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--mandir=/usr/share/man \ --mandir=/usr/share/man \
...@@ -28,22 +31,11 @@ build() { ...@@ -28,22 +31,11 @@ build() {
make make
} }
check() {
cd "$builddir"/src
./mpdcron --help > /dev/null
}
package() { package() {
make DESTDIR="$pkgdir" -C "$builddir" install 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/_* \ install -Dm644 "$builddir"/zsh-completion/_* \
"$subpkgdir"/usr/share/zsh/site-functions/ -t "$pkgdir"/usr/share/zsh/site-functions/
} }
sha512sums="19c55d9edfeda7ecd317c449d195f90c3bda04f0d7a26cc6395b437f7d501e3ea8a00820367807e61c073ed6aa38bd69fc4948de8061cbbd20f7f393204d11e5 mpdcron-0.3.tar.gz" sha512sums="19c55d9edfeda7ecd317c449d195f90c3bda04f0d7a26cc6395b437f7d501e3ea8a00820367807e61c073ed6aa38bd69fc4948de8061cbbd20f7f393204d11e5 mpdcron-0.3.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment