forked from CDrummond/cantata
-
Notifications
You must be signed in to change notification settings - Fork 3
/
PKGBUILD
49 lines (43 loc) · 897 Bytes
/
PKGBUILD
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: fenuks
_pkgname=cantata
pkgname=${_pkgname}-git
pkgver=2.4.2.r7557.8eb3a9651
pkgrel=1
pkgdesc="Qt5 Graphical MPD Client "
arch=('x86_64' 'aarch64')
url="https://github.com/fenuks/cantata"
license=('GPL3')
depends=(
libcdio-paranoia
libmtp
libmusicbrainz5
mpg123
qt5-multimedia
qt5-svg
taglib
libebur128
ffmpeg
)
makedepends=('cmake')
provides=("$_pkgname")
conficts=("$_pkgname")
source=("$pkgname::git+file://$(pwd)")
sha1sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
printf "%s.r%s.%s" "$(git tag | tail -n 1 | sed 's/^v//')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${pkgname}"
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
}
build() {
cd "${srcdir}/${pkgname}/build"
make
}
package() {
cd "${srcdir}/${pkgname}/build"
make DESTDIR="${pkgdir}" install
}