blob: 28f0229b8f6260c2c15da9a9459d770e22308690 (
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
#!/bin/bash
### -- Above shabeng-line for automatic syntax-highlighting in some editors. -- ###
# Maintainer: dreieck
# Contributor: speps <speps at aur dot archlinux dot org>
_name='rezound'
pkgname="${_name}-svn"
_pkgver='latest'
# pkgver="${_pkgver}"
pkgver="${_pkgver}"
# pkgver='0.13.1beta.r2022M.date20131229'
pkgrel=3
pkgdesc="A graphical audio file editor, not bloated, simple to use. Supports LADSPA-plugins. (NOTE: The package's dependencies can be minimised by changing the PKGBUILD's ./configure-script.)"
arch=('i686' 'x86_64')
url='http://rezound.sourceforge.net/'
_svntrunk="http://svn.code.sf.net/p/${_name}/code/trunk"
# _svntrunk="http://${_name}.svn.sourceforge.net/svnroot/${_name}/trunk"
license=('GPL')
depends=(
'libpulse'
'portaudio'
'fftw'
'fox'
'jack'
'audiofile'
'desktop-file-utils'
'libvorbis'
'soundtouch'
'lame'
'flac'
)
makedepends=(
'subversion'
'bison'
'flex'
)
optdepends=(
'cdrdao: For burn-to-CD-feature.'
)
provides=(
"${_name}=${pkgver}"
)
conflicts=(
"$_name"
)
install="${_name}.install"
source=(
"${_name}::svn+${_svntrunk}"
"${_name}.png"
"${_name}.install"
"website_rendered.txt"
"website.url"
)
sha256sums=(
'SKIP'
'5a33ebae3f38bf9b824c262696ea67febc66ee2ef68fa22e976409041a08a489'
'9fe12f1bc573f5d431fcc8f9ca3ed17fc1e1d30248ae3b58209fc53084ae0a4e'
'8e164d279e6ebd58b1ca81bc970e6019719e6f5ee8b09cc3aa87fa7122f67867'
'f5e97e9ae55241a0b060f2e0162a9189700f37a1de8e8bb731dfc6ece5d03f88'
)
pkgver() {
_majorver="$(cat "${srcdir}/${_name}/${_name}/configure.ac" | grep -E 'AC_INIT\(' | awk -F',' '{print $2}' | tr -d '[:space:]')"
_svnrev="$(svnversion "${srcdir}/${_name}")"
_svndate="$(svn info "${srcdir}/${_name}" | grep -E '^Last Changed Date' | awk -F':' '{print $2}' | awk '{print $1}' | tr -d '-' | tr -d '[:space:]')"
echo "${_majorver}.r${_svnrev}.date${_svndate}"
}
build() {
msg "Starting build..."
cd "${srcdir}/${_name}/${_name}"
# doc dir fix
sed -i "/pkgdocdir/s/prefix/datarootdir/" config/am_include.mk
./bootstrap
./configure \
--prefix=/usr \
--enable-shared \
--disable-static \
--enable-oss \
--enable-alsa \
--enable-portaudio \
--enable-jack \
--enable-pulse \
--enable-ladspa \
--disable-rpath \
--enable-nls
make
}
package() {
cd "${srcdir}/${_name}/${_name}"
make DESTDIR="${pkgdir}/" install
### icon
install -Dm644 "${srcdir}/${_name}.png" \
"${pkgdir}/usr/share/pixmaps/${_name}.png"
### desktop files
install -Dm644 packaging/generic_rpm/kde/x-rez.desktop \
"${pkgdir}/usr/share/applications/x-rez.desktop"
sed "s|\(Icon=/usr/share/\).*|\1pixmaps/${_name}.png|" \
packaging/generic_rpm/kde/${_name}.desktop > \
"${pkgdir}/usr/share/applications/${_name}.desktop"
chmod 644 "${pkgdir}/usr/share/applications/${_name}.desktop"
### man
install -Dm644 packaging/debian/${_name}.1 \
"${pkgdir}/usr/share/man/man1/${_name}.1"
### website
install -Dm644 "${srcdir}/website_rendered.txt" \
"${pkgdir}/usr/share/doc/${_name}/website/website_rendered.txt"
install -Dm644 "${srcdir}/website.url" \
"${pkgdir}/usr/share/doc/${_name}/website/website.url"
}
|