summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a6d65dfc35e48ddc4f1c0962e89ba2ae2dbb69ad (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
# Maintainer: robertfoster
# Contributor: OK100 <ok100@lavabit.com>
# Contributor: Jeremy Newton (Mystro256)
# Contributor: Ivan Nikolaev <voidexp@gmail.com>
# Contributor: Christian Ohrfandl (ToxicDragon)

pkgname=guitar-pro
pkgver=11686
pkgrel=7
pkgdesc="A popular tablature editor software for guitar, bass, and many other instruments."
url="http://www.guitar-pro.com"
arch=('i686' 'x86_64')
license=('Proprietary')
depends=('gksu' 'pulse-native-provider')
depends_x86_64=('lib32-freetype2' 'lib32-fontconfig' 'lib32-glib2' 'lib32-libgl' 'lib32-libpng12' 'lib32-libpulse' 'lib32-libxml2' 'lib32-libxrender' 'lib32-libxslt' 'lib32-portaudio' 'lib32-zlib')
depends_i686=('freetype2' 'glib2' 'libgl' 'libpng12' 'libpulse' 'libxml2' 'libxrender' 'libxslt' 'portaudio' 'zlib')
makedepends=('binutils' 'tar')

source=("https://downloads.guitar-pro.com/gp6/gp6-full-linux-r$pkgver.deb"
	"https://github.com/M0Rf30/openssl098-lib32/raw/master/libcrypto.so.0.9.8"
	"https://github.com/M0Rf30/openssl098-lib32/raw/master/libssl.so.0.9.8")

build() {
	cd "$srcdir"
	tar xvzf data.tar.gz || return 1
}

package() {
	cd "$srcdir"

	mv -v opt $pkgdir
	mv -v usr $pkgdir

	install -m755 -D libcrypto.so.0.9.8 $pkgdir/opt/GuitarPro6
	install -m755 -D libssl.so.0.9.8 $pkgdir/opt/GuitarPro6
	sed -i 's|Icon=guitarpro6.png|Icon=GP6-icon|g' $pkgdir/usr/share/applications/GuitarPro6.desktop
	mv $pkgdir/usr/share/pixmaps/guitarpro6.png $pkgdir/usr/share/pixmaps/GP6-icon.png
	echo "StartupWMClass=GuitarPro" >>$pkgdir/usr/share/applications/GuitarPro6.desktop
}

sha256sums=('7bd3cbb256063eab979b2f12ada94aa139154cde093c08ced704d0652138140c'
	'd70aad518d437c12fee4d7d3087e9404f4eabad3dd8f170bfdb63e1c34c4c927'
	'49d9767408ea777ae3d9814c01d3906049ac5ca5d828828ad3add6e1a49f5515')