blob: 317642396a771a754221c3af206dc968f2ee165e (
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
60
61
|
# Contributor: tristero
pkgname=arcs-tools-git
pkgver=0.1.0alpha2+15.bf2587c
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')
makedepends=('git>=2.0' 'cmake>=3.9.6')
optdepends=('doxygen>=1.8.14: build documentation' )
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()
{
msg "Configure"
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/usr" \
"${srcdir}/${pkgname%-git}/"
msg "Build"
cmake --build .
}
## No check() function
package()
{
msg "Install library and files"
make DESTDIR="${pkgdir}/" install
msg "Install license"
install -D -m644 "${srcdir}/${pkgname%-git}/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}
|