summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1013e9391b0ed819c68693a4a44e597658d9ec05 (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: Max le Fou (buttbadger at gmail dot com)

pkgname=ultrastar-creator
pkgver=git.latest
pkgrel=7
pkgdesc="Qt program used to generate USDX songs from scratch"
url=https://github.com/UltraStar-Deluxe/UltraStar-Creator
license=('GPL2')
arch=('x86_64')

depends=('qt5-base' 'qt5-tools' 'git' 'libbass' 'taglib' 'cld2-git')

source=('git://github.com/UltraStar-Deluxe/UltraStar-Creator.git'
        'ultrastar-creator.desktop'
        'ultrastar-creator')

md5sums=('SKIP'
         'f5fbb7d6e481005d7b90b738ef04957f'
         'f5ff1a7eb66be5ee58c3dcec1d6f3f54')
	
build()
{
	cd "$srcdir/UltraStar-Creator/src"
	qmake UltraStar-Creator.pro
	make
}
	
package()
{
	cd ..
	install -Dm644 "ultrastar-creator.desktop" "${pkgdir}/usr/share/applications/ultrastar-creator.desktop"
        install -Dm755 "ultrastar-creator" "${pkgdir}/usr/bin/ultrastar-creator"
	install -Dm644 "$srcdir/UltraStar-Creator/setup/unix/UltraStar-Creator.png" "${pkgdir}/usr/share/pixmaps/UltraStar-Creator.png"
	
	cd "$srcdir/UltraStar-Creator/bin/release"
	install -Dm755 "UltraStar-Creator" "$pkgdir/opt/$pkgname/UltraStar-Creator"
	
	cd "$srcdir/UltraStar-Creator/bin/release/lib"
	install -Dm644 "libbass.so" "$pkgdir/opt/$pkgname/lib/libbass.so"
	install -Dm644 "libbass_fx.so" "$pkgdir/opt/$pkgname/lib/libbass_fx.so"
	
	cd "$srcdir/UltraStar-Creator/bin/release"
}