summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91e4abc1d230d3882b502822d98be6f4001b22a8 (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
# Contributor: Jan Kašpar <jan.kaspar at gmail dot com>

pkgname=gdigi
pkgver=0.4.0
pkgrel=2

pkgdesc="gdigi provides Digitech X-Edit functionality to Linux users"
arch=('i686' 'x86_64')
url="https://desowin.org/gdigi/"
license=('GPL')
depends=('alsa-lib' 'gtk3' 'glib2' 'expat')
makedepends=('make')

source=(
	"https://sourceforge.net/projects/gdigi/files/gdigi/$pkgver/$pkgname-$pkgver.tar.bz2"
	"gdigi.h.patch"
)

md5sums=(
	"62084296b81d3f888a7aee26a5f44842"
	"02d879d5581ab74524c6193b067fbbc0"
)

prepare()
{
	cd "$srcdir/$pkgname-$pkgver"

	patch -p0 < "$srcdir/gdigi.h.patch"
}

build()
{
	cd "$srcdir/$pkgname-$pkgver"

	make || return 1
}

package()
{
	cd "$srcdir/$pkgname-$pkgver"
	mkdir -p "$pkgdir/usr/bin"
	mkdir -p "$pkgdir/usr/share/applications"
	mkdir -p "$pkgdir/usr/share/icons"
	make DESTDIR="$pkgdir" install
}