archrelease: copy trunk to community-any
[ArchLinux/community.git] / mympd / repos / community-x86_64 / PKGBUILD
blobf852f225fc2870896e0f9badcfa56279050cb29b
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 _name=myMPD
4 pkgname=mympd
5 pkgver=10.3.2
6 pkgrel=1
7 pkgdesc="A standalone and lightweight web-based MPD client"
8 arch=(x86_64)
9 url="https://github.com/jcorporation/myMPD"
10 license=(GPL3)
11 depends=(
12   glibc
13   lua
15 makedepends=(
16   cmake
17   flac
18   jq
19   libid3tag
20   openssl
21   pcre2
22   perl
24 source=(https://github.com/jcorporation/$pkgname/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
25 sha512sums=('b6ab63ab337f2f1424210c7b7a803c43d7e41cb5977ce2f278ffab36333387d32e4b52a449d4ee7945cd8f674f6398cdad4bdbc166d048add92583b3d9268541')
26 b2sums=('205981329ba6bd6384b07b1be8ff3789c1406ca16bb7b04a02139aa398c3c0a523644fe2a83b05332bc99807aebb59fd2ab24798a638cee41aa07c4c4ccfd012')
28 build() {
29   local cmake_options=(
30     -B build
31     -DCMAKE_BUILD_TYPE=None
32     -DCMAKE_INSTALL_PREFIX=/usr
33     -DENABLE_FLAC=ON
34     -S $_name-$pkgver
35     -Wno-dev
36   )
38   cmake "${cmake_options[@]}"
39   cmake --build build --verbose
42 check() {
43   ctest --test-dir build --output-on-failure
46 package() {
47   depends+=(
48     flac libFLAC.so
49     libid3tag libid3tag.so
50     openssl libssl.so
51     pcre2 libpcre2-8.so
52   )
54   DESTDIR="$pkgdir" cmake --install build
55   install -vDm 644 $_name-$pkgver/{CHANGELOG,README}.md -t "$pkgdir/usr/share/doc/$pkgname/"