summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e865a71299c8770a8e7a510d59e07d5bd3452ccf (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
# Maintainer: Dominik Kummer <admin@arkades.org>
pkgname=somafm-qt-git
_pkgname=somafm-qt
pkgver=v0.1.r19.g0179f9c
pkgrel=1
pkgdesc="A player for somafm.com radio channels written in qt5/c++"
url="http://www.github.com/josefbehr/somafm-qt"
arch=('x86_64' 'i686')
license=('MIT')
depends=('qt5-base' 'qt5-multimedia')
optdepends=()
makedepends=('git')
conflicts=()
replaces=()
backup=()
source=("git+https://github.com/josefbehr/somafm-qt.git")
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --tags | sed 's/ver_//;s/_/./g;s/-/.r/;s/-/./'
}

pkgver() {
  cd "$_pkgname"
  git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${_pkgname}"
  qmake
  make
}

package() {
  cd "$_pkgname"
  install -D somafm-qt "$pkgdir/usr/bin/somafm-qt"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/COPYING"
}