summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25c0ce8acd620142e755108473f9847e634852e5 (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
# Maintainer: zuyoutoki <zuyoutoki+aur at oki dot moe>
pkgname=romog-git
pkgver=r19.915db34
pkgrel=1
pkgdesc="A command-line ROM manager written in C++, specifically for Linux. "
arch=('x86_64')
url="https://github.com/xprism1/romog"
license=('AGPL3')
depends=('pugixml' 'xalan-c' 'libarchive' 'yaml-cpp')
makedepends=('git' 'make' 'gcc')
provides=('romog')
source=("git+https://github.com/xprism1/romog")
md5sums=('SKIP')
options=(!strip)

prepare() {
	cd "$srcdir/romog/src"
	mkdir -p obj
}

pkgver() {
	cd "$srcdir/romog"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/romog/src"
	make
}

package() {
	cd "$srcdir/romog/src"
	mkdir -p "$pkgdir/usr/bin"
	cp -f romog "$pkgdir/usr/bin"
	chmod 755 "$pkgdir/usr/bin"
}