blob: 07e1b9ea78762076fcef91bc2568a7909b48f56d (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
# Contributor: SpepS <dreamspepser at yahoo dot it>
pkgname=vsxu-git
pkgver=0.5.1.r0.g98bf097
pkgrel=1
pkgdesc="A free to use program that lets you create and perform real-time audio visual presets."
arch=('i686' 'x86_64')
url="http://www.vsxu.com/"
license=('GPL' 'custom')
depends=('desktop-file-utils' 'glew' 'glfw2' 'libpng12' 'opencv' 'xdg-utils')
makedepends=('alsa-lib' 'cmake' 'git' 'pulseaudio' 'jack')
optdepends=(
'alsa-lib: ALSA support.'
'jack: JACK support'
'pulseaudio: PulseAudio support'
)
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
install=${pkgname}.install
source=("${pkgname}::git+https://github.com/vovoid/vsxu.git")
sha512sums=('SKIP')
_branch=master
pkgver() {
cd "${srcdir}/${pkgname}"
git checkout ${_branch} --quiet
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
[[ -d build ]] || mkdir build
cd "${srcdir}/${pkgname}"
git checkout ${_branch}
}
build() {
cd "${srcdir}/build"
cmake ../"${pkgname}" -DCMAKE_INSTALL_PREFIX=/usr \
-DGLFW_LIBRARY=/usr/lib/libglfw2.so \
-DPNG_LIBRARY=/usr/lib/libpng12.so \
-DPNG_PNG_INCLUDE_DIR=/usr/include/libpng12
make
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
# License.
install -Dm644 "../${pkgname}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|