forked from Strubbl/aur-guayadeque-git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
53 lines (48 loc) · 1.68 KB
/
PKGBUILD
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
43
44
45
46
47
48
49
50
51
52
53
# $Id$
# Maintainer: Sven Fischer <[email protected]>
pkgname=guayadeque-git
_pkgname=guayadeque
pkgver=0.4.6.r2224.a8b47a68
pkgrel=1
pkgdesc='Lightweight music player'
arch=('i686' 'x86_64')
url='http://guayadeque.org/'
license=('GPL3')
provides=(${pkgname%-*})
conflicts=(${pkgname%-*})
depends=('curl' 'gst-plugins-base' 'jsoncpp' 'libgpod' 'taglib' 'webkit2gtk' 'wxgtk3' 'wxsqlite3')
makedepends=('cmake' 'git')
optdepends=('gst-plugins-good: Support for PulseAudio and additional file formats'
'gst-plugins-bad: Support for additional file formats'
'gst-plugins-ugly: Support for additional file formats'
'gst-libav: Support for additional file formats'
'gvfs: Support for external devices')
source=('git+https://github.com/anonbeat/guayadeque.git'
'wxwidgets.patch')
sha512sums=('SKIP'
'bdf0de22543b1c0db7e5619e4740ef7976bdc4f4428e7413824dce585ccc51b99af747ccacb5c9da931706b176f93f80c8f4669c9b0acd3b158974b3b0b6be10')
pkgver() {
cd "${srcdir}/${_pkgname}"
local srcversion="$(grep "ID_GUAYADEQUE_VERSION" src/Version.h.in | cut -d '"' -f 2)"
printf "%s.r%s.%s" $srcversion "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_pkgname}"
patch -p1 < ../wxwidgets.patch
}
build() {
cd "${srcdir}/${_pkgname}"
./buildt
cmake . \
-DCMAKE_CXX_STANDARD='11' \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DwxWidgets_wxrc_EXECUTABLE='/usr/bin/wxrc-3.2' \
-DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config' \
-DwxWidgets_INCLUDE_DIRS='/usr/include/wx-3.2/'
make
}
package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}" install
}