summaryrefslogtreecommitdiff
path: root/user/libmpd/APKBUILD
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-09-07 20:52:23 -0500
committerKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-09-07 20:52:23 -0500
commit2187fdca9cb3f84846da0c508e910cf3d2dcbd63 (patch)
treee750dad2cb99070c1325d2751d7ca78e4ba2af36 /user/libmpd/APKBUILD
parent7907ccf908e2382fc872ece04fc12f1c50f633a7 (diff)
downloadpackages-2187fdca9cb3f84846da0c508e910cf3d2dcbd63.tar.gz
packages-2187fdca9cb3f84846da0c508e910cf3d2dcbd63.tar.bz2
packages-2187fdca9cb3f84846da0c508e910cf3d2dcbd63.tar.xz
packages-2187fdca9cb3f84846da0c508e910cf3d2dcbd63.zip
user/libmpd: new package
Diffstat (limited to 'user/libmpd/APKBUILD')
-rw-r--r--user/libmpd/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/user/libmpd/APKBUILD b/user/libmpd/APKBUILD
new file mode 100644
index 000000000..c3ae2be64
--- /dev/null
+++ b/user/libmpd/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=libmpd
+pkgver=11.8.17
+pkgrel=0
+pkgdesc="GObject-based client library for the music player daemon"
+url="https://gmpclient.org/"
+arch="all"
+license="GPL-2.0+ AND BSD-3-Clause"
+makedepends="glib-dev"
+subpackages="$pkgname-dev"
+source="http://download.sarine.nl/Programs/gmpc/11.8/libmpd-$pkgver.tar.gz"
+
+prepare() {
+ cd "$builddir"
+ default_prepare
+ update_config_sub
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="ffe2880834a4a39745a5327d628781e16eeb8cd1ec17402dda46ad96ff402bc0d8b4312ba058a39242ad9bb8c3a0bb6feb2c5ea2a30ef9be97652fdb5c02572d libmpd-11.8.17.tar.gz"