APKBUILD 828 Bytes
Newer Older
Ariadne Conill's avatar
Ariadne Conill committed
1 2 3
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libcue
4 5
pkgver=2.2.0
pkgrel=0
A. Wilcox's avatar
A. Wilcox committed
6
pkgdesc="Library for parsing CUE sheet files"
7
url="https://github.com/lipnitsk/libcue"
A. Wilcox's avatar
A. Wilcox committed
8
license="GPL-2.0"
Ariadne Conill's avatar
Ariadne Conill committed
9 10
arch="all"
depends=
11
makedepends="cmake bison flex"
Ariadne Conill's avatar
Ariadne Conill committed
12 13
install=
subpackages="$pkgname-dev"
14
source="$pkgname-$pkgver.tar.gz::https://github.com/lipnitsk/libcue/archive/v$pkgver.tar.gz"
Ariadne Conill's avatar
Ariadne Conill committed
15 16

build() {
17
	cd "$builddir"
18
	cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib .
A. Wilcox's avatar
A. Wilcox committed
19 20 21 22 23 24
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
Ariadne Conill's avatar
Ariadne Conill committed
25 26 27
}

package() {
28
	cd "$builddir"
A. Wilcox's avatar
A. Wilcox committed
29
	make DESTDIR="$pkgdir" install
Ariadne Conill's avatar
Ariadne Conill committed
30 31
}

32
sha512sums="638b4fb5eabda750fe7a43200d5f86c45c27ab7b100828ac1f76d155d3e3378a65b4e35e9e2fc17c1f6cf055ac63aff798edaf19ca88ef52966b43b857410018  libcue-2.2.0.tar.gz"