summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99f24352cce9067e10d3901ab4c88fbc5ceeeba5 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Maintainer: tristero <crf8472@mailbox.org>

pkgname=arcs-tools-git
pkgver=0.1.2alpha1+0.341a005
pkgrel=1
pkgdesc='Example Toolkit for AccurateRip checksums and ids'
arch=('x86_64')
url="https://codeberg.org/tristero/${pkgname%-git}"
license=('MIT')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
depends=('gcc-libs' 'libarcstk' 'libarcsdec' 'doxygen>=1.8.14' )
makedepends=('git' 'cmake')
source=("${pkgname%-git}::git+https://codeberg.org/tristero/${pkgname%-git}.git#branch=main")
md5sums=('SKIP')


pkgver()
{
	cd "${srcdir}/${pkgname%-git}"
	git describe --long HEAD | \
		sed 's/-\(alpha\|beta\|rc\)\.\([0-9]\+\)-/\1\2+/' | \
		sed 's/g\([a-z0-9]\+\)$/\1/' | \
		sed 's/-/./g'
}


## No prepare() function


build()
{
    printf "CMake Configure\n"

	cmake -DCMAKE_BUILD_TYPE=Release    \
		  -DCMAKE_INSTALL_PREFIX="/usr" \
		  "${srcdir}/${pkgname%-git}/"

    printf "CMake Build\n"

    cmake --build .
}


## No check() function


package()
{
	printf "Install library and files\n"

    make DESTDIR="${pkgdir}/" install

	printf "Install license\n"

	install -D -m644 "${srcdir}/${pkgname%-git}/LICENSE" \
		"${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}