Commit 4763e9cd authored by A. Wilcox's avatar A. Wilcox Committed by Ariadne Conill

main/libcue: modernise, add check

parent 63875e36
......@@ -2,10 +2,10 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libcue
pkgver=2.1.0
pkgrel=0
pkgdesc="library for parsing cue files"
pkgrel=1
pkgdesc="Library for parsing CUE sheet files"
url="https://github.com/lipnitsk/libcue"
license="GPL"
license="GPL-2.0"
arch="all"
depends=
makedepends="cmake bison flex"
......@@ -13,19 +13,20 @@ install=
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/lipnitsk/libcue/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
cmake -DCMAKE_INSTALL_PREFIX=/usr . || return 1
make || return 1
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
}
check() {
cd "$builddir"
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
}
md5sums="0fff773e95175df349329ea34bc775cf libcue-2.1.0.tar.gz"
sha256sums="288ddd01e5f9e8f901d0c205d31507e4bdffd2540fa86073f2fe82de066d2abb libcue-2.1.0.tar.gz"
sha512sums="2e69e79b6e96eb999e432e10557aaaa986d685d6e69e215bf878760032621bb2a80fafecc9bb1d80bf2f5f57b6288731fab07e1967d8dad29fa864b31d01a9b1 libcue-2.1.0.tar.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment