summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25bf216cd71e2a456547b70a23f9fe57bb89d41b (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: leotheleon <71839579+leo-the-leon@users.noreply.github.com>

pkgname=mkpsxiso-git
pkgver=2.02
pkgrel=1
pkgdesc="Faster, cross-platform, modern BUILDCD replacement"
arch=('i686' 'x86_64')
url="https://github.com/Lameguy64/mkpsxiso"
license=('GPL2')
makedepends=('cmake')
source=("git+${url}.git")
cksums=('SKIP')

prepare() {
	cd "$srcdir/mkpsxiso"
	git submodule update --init --recursive
}

build() {
	cd "$srcdir/mkpsxiso"
	cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release
	cmake --build ./build
}

package() {
	install -Dm755 "$srcdir/mkpsxiso/build/mkpsxiso" "$pkgdir/usr/bin/mkpsxiso"
	install -Dm755 "$srcdir/mkpsxiso/build/dumpsxiso" "$pkgdir/usr/bin/dumpsxiso"
	install -Dm644 "$srcdir/mkpsxiso/README.md" "$pkgdir/usr/share/doc/mkpsxiso/README.md"
	install -Dm644 "$srcdir/mkpsxiso/LICENSE.md" "$pkgdir/usr/share/doc/mkpsxiso/LICENSE.md"
	install -Dm644 "$srcdir/mkpsxiso/examples/example.xml" "$pkgdir/usr/share/doc/mkpsxiso/example.xml"
}