summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5000c63cb50bca1d050bc1715ba4ca9a43626ec2 (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
35
36
37
38
39
40
# Maintainer: Evgeniy Alekseev <arcanis.arch at gmail dot com>
# Contributor: Dan Vratil <vratil at progdansoft dot com>

pkgname=tepsonic-git
_gitname=tepsonic
pkgver=0.8c2f60b
pkgrel=1
pkgdesc="A simple, lightweight audio player written in C++ and Qt that supports collections"
url="https://danvratil.github.io/TepSonic/"
arch=('i686' 'x86_64')
license=('GPL3')
depends=('qt5-base' 'phonon-qt5' 'taglib' 'libqxt')
makedepends=('git' 'cmake' 'qt5-tools')
source=(${_gitname}::git+https://github.com/danvratil/TepSonic)
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_gitname}"
    # dirty hack since it has no stable releases or tags
    local ver=$(git describe --always | sed 's|-|.|g')
    printf "0.%s" "${ver}"
}

prepare() {
    rm -rf "${srcdir}/build"
    mkdir "${srcdir}/build"
}

build() {
    cd "${srcdir}/build"
    cmake -DCMAKE_INSTALL_PREFIX=/usr ../"${_gitname}"
    make
}

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