summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 525f57e4e1e6c72ea3458e4e3f96a00cb961c2c2 (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
# Maintainer: Arvid Norlander <VorpalBlade (at) users DOT noreply DOT github DOT com>
pkgname=macutils-git
pkgver=v2.0b4.r0.58b0225
pkgrel=1
pkgdesc="Converting and decompressing some old Macintosh-oriented archive formats"
arch=(x86_64)
url="http://fileformats.archiveteam.org/wiki/Macutil"
license=('GPL')
makedepends=('git' 'meson')
source=('macutils::git+https://github.com/VorpalBlade/macutils#branch=modernization')
md5sums=('SKIP')

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

build() {
	cd "$srcdir"
	arch-meson "${pkgname%-git}" "build"
	meson compile -C "build"
}

package() {
	cd "$srcdir"
	meson install -C "build" --destdir "$pkgdir"
}