summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9381fbfa1014f8ca5046a8ee3c520a3b181545f4 (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
27
28
29
30
31
32
33
34
# Maintainer: maz-1 <loveayawaka@gmail.com>
_pkgname=deadbeef-qt5
pkgname=${_pkgname}-git
pkgver=27.420dd44
pkgrel=1
pkgdesc="Qt based user interface plugin for DeaDBeeF music player."
arch=('i686' 'x86_64')
url='https://github.com/maz-1/deadbeef-qt'
license=('GPL2')
depends=('qt5-base' 'deadbeef')
makedepends=('cmake' 'qt5-tools')
provides=('deadbeef-qt' 'deadbeef-qt-git')
conflicts=('deadbeef-qt' 'deadbeef-qt-git')
source=("git+https://github.com/maz-1/${_pkgname}.git")
install='deadbeef-qt5-git.install'
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$_pkgname"
	echo "$(git rev-list --count HEAD).$(git describe --always)"
}

build() {
        mkdir -p "${srcdir}/build"
        cd "${srcdir}/build"
        cmake "${srcdir}/${_pkgname}" -DCMAKE_INSTALL_PREFIX="/usr"
        make clean && make 
}

package() {
        cd "${srcdir}/build" && make DESTDIR=$pkgdir install
}