diff options
Diffstat (limited to 'community/ncmpc/APKBUILD')
-rw-r--r-- | community/ncmpc/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/community/ncmpc/APKBUILD b/community/ncmpc/APKBUILD new file mode 100644 index 0000000000..45cd99d137 --- /dev/null +++ b/community/ncmpc/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Contributor: Peter Bui <pnutzh4x0r@gmail.com> +# Maintainer: Peter Bui <pnutzh4x0r@gmail.com> +pkgname=ncmpc +pkgver=0.28 +pkgrel=1 +pkgdesc="Fully featured MPD client using ncurses" +url="http://www.musicpd.org/clients/ncmpc/" +arch="all" +license="GPL2" +depends="" +depends_dev="" +makedepends="ncurses-dev glib-dev libmpdclient-dev meson" +install="" +subpackages="$pkgname-doc $pkgname-lang $pkgname-dbg" +source="http://www.musicpd.org/download/${pkgname}/0/${pkgname}-${pkgver}.tar.xz + 0001-Make-lyrics_plugin_dir-configurable-again.patch + 0002-mpdclient-check-source-again-after-mpd_glib_leave.patch" +builddir="$srcdir"/$pkgname-$pkgver + +build() { + cd "$builddir" + meson \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --buildtype=release \ + -Dcurses=ncurses \ + -Dlyrics_screen=true \ + -Dlyrics_plugin_dir=share/$pkgname/lyrics \ + . output + ninja -C output +} + +package() { + cd "$builddir" + DESTDIR="$pkgdir" ninja -C output install + + mkdir -p "$pkgdir"/usr/share/$pkgname/lyrics + install -m755 lyrics/* \ + "$pkgdir"/usr/share/$pkgname/lyrics + + mkdir -p "$pkgdir"/usr/share/licenses/$pkgname/ + mv "$pkgdir"/usr/share/doc/$pkgname/COPYING \ + "$pkgdir"/usr/share/licenses/$pkgname/ +} + +sha512sums="d5cf890fc72b3c8c3391ddbcae49d494d9504eb237dcef1277b3b34eaecdce20611b1a874a2d248722b66e932a0ec7ace5bedc0dafbb0afe0d3476d4af520e0c ncmpc-0.28.tar.xz +3e04693161caa14d7e470241fd1c965767eea71cda5a67a029a9ddf75aefd80848ea582a0bc85e8b304b8e1272ad4b5404d369053fab03da59557a4ac42a9e99 0001-Make-lyrics_plugin_dir-configurable-again.patch +a297ca0c2da1ebcaa01af8c2c211f9d99529891cb8c9dfb28eaf169186330b83d9a4120006e91bc2c0c272313501d4fd4812c9df707a8c03d6dace1b7fb469c5 0002-mpdclient-check-source-again-after-mpd_glib_leave.patch" |