summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29962b72da44d837ebb5e0c7c82f32129827b338 (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
#Maintainer: HurricanePootis <hurricanepootis@protonmail.com>
pkgname=betterww-git
pkgver=1.4.r16.g640a2a4
pkgrel=7
pkgdesc="Wind Waker Modding Tool for Game Cube"
arch=('any')
url="https://github.com/WideBoner/betterww"
license=('MIT')
depends=("python" "pyside2" "python-pyaml" "python-pillow" "python-pyqt5")
makedepends=("git")
source=("git+https://github.com/WideBoner/betterww.git"
	"betterww-launcher"
	"betterww.desktop"
	"betterww.png"
	"LICENSE")
sha512sums=('SKIP'
            '1fd5f9e9442b1f40ced0c866567763c65173ac06ea41f96ba99bb2d54521d36476f4b01cc89980d086142f246c97b0f1ee8fb054de59d85eccaf430f79af2c32'
            'c5d63dc5a391c28eec09181c684af882898e9c37a29615fe086ce59ac267e1e1b22af19461277b4ca9f81049288307e3d9ba806d6dc395fc4b98d61234f25d63'
            'f4f5ec0ed0c72ab640188d802d81daf2a14c1eab3fedb0e3d6b85068cc5c2164bd1fddb1db6a4d53ae1cbe4a439ab244f96fed3a1e05c6e09893d366904f9d9d'
            'cde29735b23877e3c1dafd07bb1e86ddb84f48e836db5872bbce67ff83d15f06097c9f54313742cfbf34d0302de13447581dd976f0f22178726a2a49f5baf19b')

pkgver() {  
  cd "$srcdir/betterww"
  git describe --long --tags | sed -r "s/([^-]*-g)/r\1/;s/-/./g" 
} 

package() {
	mkdir -p "$pkgdir/opt/"
	mkdir -p "$pkgdir/usr/bin/"
	mkdir -p "$pkgdir/usr/share/icons/hicolor/256x256/apps/"
	mkdir -p "$pkgdir/usr/share/applications/"
	mkdir -p "$pkgdir/usr/share/licenses/betterww/"
	cp "$srcdir/betterww.desktop" "$pkgdir/usr/share/applications/betterww.desktop"
	cp "$srcdir/betterww.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/betterww.png"
	cp "$srcdir/betterww-launcher" "$pkgdir/usr/bin/betterww-launcher"
	cp "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/betterww/LICENSE"
	cp -r "$srcdir/betterww/" "$pkgdir/opt/"
	chmod 777 -R "$pkgdir/opt/betterww/"
}