aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tagutil/APKBUILD
blob: b55990bb4f8a3fe3cd3fdd38d957ab3a115ac0db (plain) (blame)
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
# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=tagutil
pkgver=3.1
pkgrel=0
pkgdesc="scriptable music files tags tool and editor"
url="https://github.com/kAworu/tagutil"
arch="all"
license="BSD-2-Clause"
makedepends="cmake flac-dev jansson-dev libvorbis-dev taglib-dev yaml-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/kAworu/tagutil/archive/v3.1.tar.gz
	patch-musl.patch"
options="!check" # No tests

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		$CMAKE_CROSSOPTS src
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="a5b2140250f21eddd0154231608546b78c5646bb4bcb6ed7b11a3cbade2435c322d83c19a2a2e6852cdacca19a2b1cd6e33c0b71147d6873679d2b41db5a06d9  tagutil-3.1.tar.gz
2915411e1dc38126879c19d69caf8923fbcb95c72b3371661f50078b2722369ebb88f6dd3de9ba78f974a1eb07b743b1d69e40ee678f2a6f1634d8c972a18ef9  patch-musl.patch"