blob: fd5e39e06d1d06626ab58f8440bb989960d66bbd (
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
|
# Maintainer: Quentin Barbarat <q DOT barbarat AT gmail DOT com>
pkgname=gba-tileeditor-git
url="https://github.com/quentin-dev/gba-tileeditor"
_gitname=gba-tileeditor
pkgver=0.0.10.r12.g75b6e07
pkgrel=1
pkgdesc="A Gameboy Advance tile editor"
arch=(x86_64)
license=('MIT')
depends=('qt5-base')
makedepends=('qt5-base' 'git' 'make' 'cmake')
source=("$pkgname::git+https://github.com/quentin-dev/gba-tileeditor#branch=master" "gba-tileeditor-git.desktop")
md5sums=('SKIP' '847b6674e02e552783e6db33a11b6e53')
pkgver() {
cd "${srcdir}/${pkgname}"
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${pkgname}"
echo "$PWD"
cmake -S . -B build
cmake --build build
}
package() {
install -D -m 644 gba-tileeditor-git.desktop ${pkgdir}/usr/share/applications/gba-tileeditor-git.desktop
cd "${srcdir}/${pkgname}"
install -D -m 755 build/gba-tileeditor-client/gba-tileeditor ${pkgdir}/usr/bin/gba-tileeditor-git
}
|