diff options
| author | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-09-16 13:51:45 +0200 |
|---|---|---|
| committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-09-16 13:51:45 +0200 |
| commit | a2bfea277f4fd641bdde2bab86bfa516d3177173 (patch) | |
| tree | ab8137675f035003ef0999da66dbedaaa3891bd9 | |
| parent | c83382b1877e8010ea3b62e0e58bd886a392f97c (diff) | |
| download | aports-a2bfea277f4fd641bdde2bab86bfa516d3177173.tar.bz2 aports-a2bfea277f4fd641bdde2bab86bfa516d3177173.tar.xz | |
main/libmpdclient: modernize APKBUILD
| -rw-r--r-- | main/libmpdclient/APKBUILD | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/main/libmpdclient/APKBUILD b/main/libmpdclient/APKBUILD index 010491ba24..71f0d1a712 100644 --- a/main/libmpdclient/APKBUILD +++ b/main/libmpdclient/APKBUILD @@ -3,38 +3,30 @@ pkgname=libmpdclient pkgver=2.11 pkgrel=0 pkgdesc="An asynchronous API library for interfacing MPD in the C, C++ & Objective C languages" -url="http://mpd.wikia.com/wiki/Client:libmpdclient" +url="https://www.musicpd.org/libs/libmpdclient" arch="all" license="GPL2" depends= makedepends="doxygen" subpackages="$pkgname-dev $pkgname-doc" -source="http://www.musicpd.org/download/libmpdclient/${pkgver%.*}/libmpdclient-$pkgver.tar.xz - " - -_builddir="$srcdir/$pkgname-$pkgver" - -prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +source="https://www.musicpd.org/download/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz" +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - || return 1 - make || return 1 + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } + sha512sums="0503db31262acfb871578278d6526e12ee2ffbbe414425ab5ebac61f27da8ad4503d948b4d192421d301bd0a29b9b460f195e82a44608f984697a8aa47b2eb9b libmpdclient-2.11.tar.xz" |
