-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
PKGBUILD_release
49 lines (37 loc) · 1.08 KB
/
PKGBUILD_release
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
pkgname=deadbeef-plugin-waveform
pkgver=0.5
pkgrel=3
pkgdesc="Waveform Seekbar Plugin for the DeaDBeeF audio player"
url="https://github.com/cboxdoerfer/ddb_waveform_seekbar"
arch=('i686' 'x86_64')
license='GPL2'
depends=('deadbeef' 'sqlite' 'gtk2')
makedepends=('git' 'pkg-config')
conflicts=('deadbeef-plugin-waveform-git')
_gitname=ddb_waveform_seekbar
_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 v$pkgver
else
git clone $_gitroot
cd $_gitname
fi
git checkout v$pkgver
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_misc_waveform_GTK2.so $pkgdir/usr/lib/deadbeef/ddb_misc_waveform_GTK2.so
install -D -v -c $srcdir/$_gitname-build/gtk3/ddb_misc_waveform_GTK3.so $pkgdir/usr/lib/deadbeef/ddb_misc_waveform_GTK3.so
}