mirror of
https://github.com/arcan1s/pkgbuild.git
synced 2025-04-26 08:17:19 +00:00
45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
# Maintainer: Evgeniy Alekseev <arcanis.arch at gmail dot com>
|
|
# Contributor: Dan Vratil <vratil at progdansoft dot com>
|
|
|
|
pkgname=tepsonic-git
|
|
_gitname=tepsonic
|
|
pkgver=0.ea55436
|
|
pkgrel=1
|
|
pkgdesc="A simple, lightweight audio player written in C++ and Qt that supports collections"
|
|
url="https://github.com/danvratil/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
|
|
"phonon_include.patch")
|
|
md5sums=('SKIP'
|
|
'86e6cd941dbb63392653354ba5239072')
|
|
|
|
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"
|
|
|
|
patch -p0 -i "phonon_include.patch"
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/build"
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr ../"${_gitname}"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/build"
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|
|
|
|
|