blob: 166c990f9413f8ec9f795342be04e95447c2fa4d (
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
|
# Maintainer: beelzy
pkgname=kame-editor-git
pkgver=1.4.1
pkgrel=1
arch=('i686' 'x86_64' 'aarch64')
url="https://gitlab.com/beelzy/kame-editor"
license=('GPL3')
pkgdesc='A 3DS theme editor made with Qt6'
depends=('qt6-base' 'portaudio' 'kame-tools-git' 'rstmcpp-git' 'vgmstream-git')
makedepends=('git')
_gitroot='https://gitlab.com/beelzy/kame-editor.git'
_gitname='kame-editor'
source=("${_gitname}::git+${_gitroot}")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
cat kame-editor.pro | grep -o -E "^VERSION = .*" | grep -oE "([0-9\.a-z]+)"
}
build() {
cd "$srcdir/$_gitname"
qmake6
make
"$srcdir/$_gitname/buildicons.sh"
}
package() {
install -D "$srcdir/$_gitname/build/kame-editor" "$pkgdir/usr/bin/kame-editor"
mkdir -p "$pkgdir/usr/share/icons/hicolor"
mkdir -p "$pkgdir/usr/share/applications"
cp "$srcdir/$_gitname/kame-editor.desktop" "$pkgdir/usr/share/applications/kame-editor.desktop"
cp -a "$srcdir/$_gitname/icons/." "$pkgdir/usr/share/icons/hicolor"
cp -a "$srcdir/$_gitname/icons/." "$pkgdir/usr/share/icons/gnome"
}
|