-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathPKGBUILD
43 lines (34 loc) · 1023 Bytes
/
PKGBUILD
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
pkgname=deadbeef-plugin-spectrogram-git
pkgver=20140327
pkgrel=1
pkgdesc="Spectrogram Plugin for the DeaDBeeF audio player (development version)"
url="https://github.com/cboxdoerfer/ddb_spectrogram"
arch=('i686' 'x86_64')
license='GPL2'
depends=('deadbeef' 'fftw')
makedepends=('git')
_gitname=ddb_spectrogram
_gitroot=https://github.com/cboxdoerfer/${_gitname}
build() {
cd $srcdir
msg "Connecting to GIT server..."
rm -rf $srcdir/$_gitname-build
if [ -d $_gitname ]; then
cd $_gitname
git pull origin master
else
git clone $_gitroot
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
cd $srcdir
cp -r $_gitname $_gitname-build
cd $_gitname-build
touch AUTHORS
touch ChangeLog
make
}
package() {
install -D -v -c $srcdir/$_gitname-build/gtk2/ddb_vis_spectrogram_GTK2.so $pkgdir/usr/lib/deadbeef/ddb_vis_spectrogram_GTK2.so
install -D -v -c $srcdir/$_gitname-build/gtk3/ddb_vis_spectrogram_GTK3.so $pkgdir/usr/lib/deadbeef/ddb_vis_spectrogram_GTK3.so
}