summaryrefslogtreecommitdiffstats
path: root/arch/tde-core/tde-arts/PKGBUILD
blob: e582815422f20df8f31aaf239b5d3c4994b73f53 (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
56
57
58
59
# Maintainer: Michael Manley <mmanley@nasutek.com>
# Contributor: Pawel 'l0ner' Soltys <pwslts@gmail.com>
# Contributor: Calvin Morrison <mutantturkey@gmail.com>
# Contributor: David C. Rankin <drankinatty at gmail dot com>

pkgname=tde-arts
pkgver=14.0.10
pkgrel=1
pkgdesc="Trinity ARTS Sound System and libraries"
arch=('i686' 'x86_64')
url='https://scm.trinitydesktop.org/scm/git/arts'
license=('GPL')
groups=('tde-core')
depends=('alsa-plugins'
	'alsa-tools'
	'alsa-utils'
	'audiofile'
	'glib2'
	'libmad'
	'libogg'
	'libvorbis'
	'pulseaudio-alsa'
	'tde-tqtinterface')
makedepends=('pkgconfig' 'cmake')
optdepends=('audio-convert: A script with an easy to use interface to convert audio files: wav, mp3, ogg, flac, aac, mpc, ape and wma'
	'lame: A high quality MPEG Audio Layer III (MP3) encoder'
	'libmp3splt: Library for splitting mp3 and ogg files without decoding'
	'mpd: Music daemon that plays MP3, FLAC, and Ogg Vorbis files'
	'vorbis-tools: Extra tools for Ogg-Vorbis')
provides=('arts')
conflicts=('kdemod3-arts' 'arts')
replaces=('trinity-arts')
options=('staticlibs' 'libtool' '!emptydirs')
source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/dependencies/arts-trinity-${pkgver}.tar.xz")
md5sums=('d9d719e824acd5397dda709ed5352feb')
install='tde-arts.install'

[ -n "$TDEDIR" ] || TDEDIR=/opt/trinity

build() {
   cd $srcdir
   msg "Creating out-of-source build directory: ${srcdir}/build"
   mkdir -p build
   cd build

   msg "Starting cmake..."
   cmake ${srcdir}/${pkgname#*-}-trinity-${pkgver}/ \
      -DCMAKE_INSTALL_PREFIX=${TDEDIR} \
      -DWITH_GCC_VISIBILITY=ON

   msg "Building $pkgname..."
   make $NUMJOBS
}

package() {
   msg "Packaging - $pkgname-$pkgver"
   cd ${srcdir}/build
   make -j1 DESTDIR="$pkgdir" install
}