blob: d475cbedb32a7ab0623f6b7bf145e6b21bede262 (
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# Maintainer: redtide <redtid3 at gmail dot com>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
# Contributor: Joermungand <joermungand at gmail dot com>
pkgname=loopauditioneer-svn
pkgver=r62
pkgrel=1
pkgdesc="Software for loop and cue handling in .wav files"
arch=('i686' 'x86_64')
url="http://loopauditioneer.sourceforge.net/"
license=('GPL3')
depends=('wxgtk3' 'webkit2gtk' 'rtaudio' 'libsamplerate')
makedepends=('svn')
provides=('loopauditioneer')
conflicts=('loopauditioneer')
source=("${pkgname%-*}"::'svn://svn.code.sf.net/p/loopauditioneer/code/trunk'
'loopauditioneer-datadir.diff'
"${pkgname%-*}.desktop")
md5sums=('SKIP'
'2a48bc667b0f4b01aeb7d9c3c9a7319a'
'0e2286c155701065663461be6c1056ba')
_cpp_sources=(
AudioSettingsDialog.cpp
AutoLoopDialog.cpp
AutoLooping.cpp
BatchProcessDialog.cpp
CrossfadeDialog.cpp
CueMarkers.cpp
CutNFadeDialog.cpp
FFT.cpp
FileHandling.cpp
ListInfoDialog.cpp
LoopAuditioneer.cpp
LoopMarkers.cpp
LoopOverlay.cpp
LoopParametersDialog.cpp
MyFrame.cpp
MyListCtrl.cpp
MyPanel.cpp
MyResampler.cpp
MySound.cpp
PitchDialog.cpp
StopHarmonicDialog.cpp
WaveformDrawer.cpp
)
pkgver() {
cd "$srcdir/${pkgname%-*}"
local ver="$(svnversion)"
printf "r%s" "${ver//[[:alpha:]]}"
}
prepare() {
cd "$srcdir/${pkgname%-*}"
patch -p1 -N -r - -i "$srcdir"/loopauditioneer-datadir.diff || true
}
build() {
cd "$srcdir/${pkgname%-*}"
echo "Building libsndfile..."
(
cd lib-src/libsndfile;
aclocal;
automake;
./configure \
--disable-external-libs \
--enable-static;
make
)
ln -sf libsndfile/src/.libs/libsndfile.a lib-src
echo "Building LoopAuditioneer..."
(
cd src
g++ \
-DDATADIR=\"/usr/share/loopauditioneer\" \
-o LoopAuditioneer \
${_cpp_sources[*]} \
-I../lib-src/libsndfile/src \
../lib-src/libsndfile.a \
`pkg-config --cflags --libs rtaudio` \
-lm \
-lpthread \
-lsamplerate \
`wx-config-gtk3 --cxxflags --unicode=yes --libs` \
)
}
package() {
cd "$srcdir/${pkgname%-*}"
# binary
install -Dm755 src/LoopAuditioneer "$pkgdir/usr/bin/${pkgname%-*}"
# desktop file
install -Dm644 "${srcdir}/${pkgname%-*}.desktop" -t "$pkgdir/usr/share/applications"
# icons
install -Dm644 src/icons/*.png icons/index.url -t "$pkgdir/usr/share/${pkgname%-*}/icons"
install -Dm755 icons/24x24/* -t "$pkgdir/usr/share/${pkgname%-*}/icons/24x24"
install -Dm644 src/help/help.zip -t "$pkgdir/usr/share/${pkgname%-*}/help"
#install -Dm644 src/help/images/* -t "$pkgdir/usr/share/${pkgname%-*}/help/images/"
# application icon
install -dm755 "$pkgdir/usr/share/pixmaps"
ln -sf "../../${pkgname%-*}/icons/LoopyIcon-48.png" "$pkgdir/usr/share/pixmaps/${pkgname%-*}.png"
# documentation
install -Dm644 README.txt -t "$pkgdir/usr/share/doc/${pkgname}"
# icons license
install -Dm755 icons/readme.txt "$pkgdir/usr/share/licenses/${pkgname}/license-icons.txt"
}
|