blob: be25757ed91ee6469406b670c243e8009bca21db (
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
41
42
|
# Maintainer: twa022 <twa022 at gmail dot com>
_pkgname=radiotray-ng
pkgname=${_pkgname}-git
_pkgver=0.2.2
_branch=v${_pkgver}-dev
pkgver=0.2.2.r26.1052008
pkgrel=1
pkgdesc="An Internet radio player for Linux"
arch=('i686' 'x86_64')
url="https://github.com/ebruck/radiotray-ng"
license=('GPL')
depends=('boost-libs' 'curl' 'gstreamer' 'jsoncpp' 'libappindicator-gtk3'
'libbsd' 'libnotify' 'libxdg-basedir' 'glibmm' 'wxgtk3')
makedepends=('cmake' 'boost' 'lsb-release' 'git')
optdepends=('python2-lxml: Convert radiotray bookmarks to radiotray-ng format')
options=('!libtool')
provides=("${_pkgname}=${pkgver%\.r*}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+https://github.com/ebruck/radiotray-ng#branch=${_branch}")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
printf '%s.r%s.%s' "${_pkgver}" "$(git rev-list --count HEAD)" "$(git describe --always)"
}
build() {
cd "${srcdir}/${_pkgname}"
[ -d build ] && rm -r build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3
make
}
package() {
cd "${srcdir}/${_pkgname}/build"
make DESTDIR="$pkgdir" install
}
|