blob: c11d76f3be231051e1ae47da4da013ca8375e3df (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
pkgbase=musepack-tools-svn
pkgname=('musepack-tools-svn'
'libcuefile-svn'
'libreplaygain-svn'
)
pkgver=481
pkgrel=1
pkgdesc="Musepack sv8 decoder/encoder tools and libs (SVN Version)"
arch=('i686' 'x86_64')
url='http://www.musepack.net'
license=('LGPL')
makedepends=('subversion'
'cmake'
'glibc'
)
source=("libcuefile::svn+http://svn.musepack.net/libcuefile/trunk"
"libreplaygain::svn+http://svn.musepack.net/libreplaygain"
"libmpc::svn+http://svn.musepack.net/libmpc/trunk"
"mppenc::svn+http://svn.musepack.net/mppenc/trunk"
)
sha1sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
prepare() {
mkdir -p build-{libcuefile,libreplaygain,libmpc,mppenc}
}
build() {
cd "${srcdir}/build-libcuefile"
cmake ../libcuefile \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
cd "${srcdir}/build-libreplaygain"
cmake ../libreplaygain \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
cd "${srcdir}/build-libmpc"
cmake ../libmpc \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DREPLAY_GAIN_LIBRARY:FILEPATH="${srcdir}"/build-libreplaygain/src/libreplaygain.so \
-DCUEFILE_LIBRARY:FILEPATH="${srcdir}"/build-libcuefile/src/libcuefile.so
make
cd "${srcdir}/build-mppenc"
cmake ../mppenc \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package_libcuefile-svn() {
pkgdesc="Parses so-called cue sheets and handles the parsed data. (SVN Version)"
depends=('glibc')
provides=('libcuefile' 'libcuefile.so')
conflicts=('libcuefile')
make -C build-libcuefile DESTDIR="${pkgdir}" install
for i in $(find libcuefile/include/cuetools -type f); do install -Dm644 "${i}" "${pkgdir}/usr/include/cuetools/${i}"; done
}
package_libreplaygain-svn() {
pkgdesc="A library to adjust audio gain. (SVN Version)"
depends=('glibc')
provides=('libreplaygain' 'libreplaygain.so')
conflicts=('libreplaygain')
make -C build-libreplaygain DESTDIR="${pkgdir}" install
for i in $(find libreplaygain/include/replaygain -type f); do install -Dm644 "${i}" "${pkgdir}/usr/include/replaygain/${i}"; done
}
package_musepack-tools-svn() {
pkgdesc="Musepack decoder/encoder tools and libs. (SVN Version)"
provides=('musepack-tools' 'libmpcdec' 'libmpcdec.so')
conflicts=('musepack-tools' 'libmpcdec')
replaces=('libmpcdec')
optdepends=('libcuefile-svn: for Musepack (MPC) sv8 chapter editor'
'libreplaygain-svn: for Musepack (MPC) ReplayGain calculator')
make -C build-libmpc DESTDIR="${pkgdir}" install
for i in $(find libmpc/include/mpc -type f); do install -Dm644 "${i}" "${pkgdir}/usr/include/mpc/${i}"; done
make -C build-mppenc DESTDIR="${pkgdir}" install
}
|