ympd/PKGBUILD

39 lines
1.0 KiB
Bash
Raw Normal View History

2018-09-20 22:04:35 +00:00
# Maintainer: Juergen Mang <mail [at] jcgames [dot] de>
2018-09-13 21:56:07 +00:00
# Website: https://github.com/jcorporation/myMPD
2018-09-20 22:04:35 +00:00
# PKGBUILD Based on https://github.com/CultofRobots/archphile-custom/tree/master/mympd
2018-09-13 21:56:07 +00:00
pkgname=mympd
_pkgname=myMPD
2019-01-05 00:01:34 +00:00
pkgver=5.0.0
2018-09-13 21:56:07 +00:00
pkgrel=1
2018-10-01 22:14:15 +00:00
pkgdesc="myMPD is a standalone and mobile friendly web mpdclient."
2018-09-13 21:56:07 +00:00
arch=('x86_64' 'armv7h' 'aarch64')
2018-09-13 22:12:43 +00:00
url="http://github.org/jcorporation/myMPD"
2018-09-13 21:56:07 +00:00
license=('GPL')
depends=('libmpdclient' 'openssl')
2018-09-20 22:04:35 +00:00
makedepends=('cmake')
2018-09-13 21:56:07 +00:00
optdepends=()
provides=()
conflicts=()
replaces=()
install=contrib/archlinux.install
source=("https://github.com/jcorporation/${_pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('SKIP')
2018-09-13 21:56:07 +00:00
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
[ -d release ] || mkdir release
cd release
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=RELEASE ..
make
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}/release"
make DESTDIR="$pkgdir/" install
install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/contrib/mympd.service" "$pkgdir/usr/lib/systemd/system/mympd.service"
/usr/share/mympd/crcert.sh
2018-09-13 21:56:07 +00:00
}