summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c516d9cf14edca9ca8a2424d79e4759c983a271 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer : Michael Herstine <sp1ff at pobox dot com>
pkgname=mpdpopm-bin
pkgver=0.3.3
pkgrel=1
pkgdesc='Maintain ratings & playcounts for your mpd server (pre-compiled)'
url=https://github.com/sp1ff/mpdpopm
arch=('x86_64')
license=('GPL-3.0-or-later')
depends=("gcc-libs" "glibc")
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}")
source=("https://github.com/sp1ff/mpdpopm/releases/download/$pkgver/mpdpopm-$pkgver-x86_64-unknown-linux.tar.gz")
sha256sums=('9942f91f654a6b1cbaa21b9a7a6d0aaa2569dd712b40fa9545715a8c9a803a85')

package() {
    _output="${srcdir}/${pkgname/-bin/}-$pkgver-x86_64-unknown-linux"
    install -Dm755 "${_output}/bin/mppopm" "${pkgdir}/usr/bin/mppopm"
    install -Dm755 "${_output}/bin/mppopmd" "${pkgdir}/usr/bin/mppopmd"

    install -Dm644 "${_output}/doc/mppopmd.conf" "${pkgdir}/etc/mppopmd.conf"
    gzip "${_output}/doc/mpdpopm.info"
    install -Dm644 "${_output}/doc/mpdpopm.info.gz" "${pkgdir}/usr/share/info/mpdpopm.info.gz"
    install -Dm644 "${_output}/doc/mppopmd.service" "${pkgdir}/usr/lib/systemd/user/mppopmd.service"
    sudo install-info --info-dir=${pkgdir}/usr/share/info ${pkgdir}/usr/share/info/mpdpopm.info.gz
}