summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6fd2835ee4d4d8b993e7bd067688fe08f786049d (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
# Maintainer: Michael Koloberdin <michael@koloberdin.com>
pkgname=odcread-git
pkgver=0.2.r5.g9c09cc9
pkgrel=2
pkgdesc="Reader/converter for 'Oberon compound document' binary format used by the Black Box Component Builder"
arch=('x86_64')
url="https://github.com/ComdivByZero/${pkgname%-git}"
license=('GPL')
depends=()
makedepends=('git' 'cmake')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/ComdivByZero/${pkgname%-git}")
md5sums=('SKIP')

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

build() {
	cmake -B build -S "$srcdir/${pkgname%-git}" \
		-DCMAKE_BUILD_TYPE='Release' \
		-DCMAKE_INSTALL_PREFIX='/usr'
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}