aboutsummaryrefslogtreecommitdiffstats
path: root/community/opustags/APKBUILD
blob: 792d62dc577c60e26128d70c612290527585d359 (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
# Contributor: Alexey Yerin <yyp@disroot.org>
# Maintainer: Alexey Yerin <yyp@disroot.org>
pkgname=opustags
pkgver=1.9.0
pkgrel=0
pkgdesc="Ogg Opus tags editor"
url="https://github.com/fmang/opustags"
arch="all"
license="BSD-3-Clause"
makedepends="cmake libogg-dev samurai"
subpackages="$pkgname-doc"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/fmang/opustags/archive/refs/tags/$pkgver.tar.gz
"
options="!check" # Contains no tests

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None \
		$CMAKE_CROSSOPTS .
	cmake --build build
}

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

sha512sums="
cd3ce0bb41c566e47acb0a4736deca5aa9c975b64afc13848dd29a48032bd1abc26fc3889006f1a18bece0c1b90f84f86170166fa3c9fd5d007073d15b4da20d  opustags-1.9.0.tar.gz
"