From 2e02b5fbe4d35637be07d57b9c3b402aabd8da3b Mon Sep 17 00:00:00 2001 From: Lilac Date: Mon, 15 May 2023 14:21:31 +0000 Subject: [PATCH] sacd-extract-git: auto updated to 0.3.9.3.r107.g01c90dd-1 --- repo/sacd-extract-git/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 repo/sacd-extract-git/PKGBUILD diff --git a/repo/sacd-extract-git/PKGBUILD b/repo/sacd-extract-git/PKGBUILD new file mode 100644 index 0000000..36630ea --- /dev/null +++ b/repo/sacd-extract-git/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: kyndair +pkgname=sacd-extract-git +_pkgname=sacd-ripper +pkgver=0.3.9.3.r107.g01c90dd +pkgrel=1 +pkgdesc="Extract DSDIFF files, DSF files or RAW ISO from SACD" +arch=('i686' 'pentium4' 'x86_64') +url="https://github.com/EuFlo/sacd-ripper" +license=('GPL-2.0') +makedepends=("cmake" "git") +provides=('sacd-extract') +conflicts=('sacd-extract') +source=('git+https://github.com/EuFlo/sacd-ripper.git') +sha256sums=('SKIP') + +# update the package version to the current git version +pkgver() { + cd "${srcdir}/$_pkgname" + git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g' +} + +build() { + cd "${_pkgname}/tools/sacd_extract/" + cmake . + make +} + +package() { + # install executable + install -Dm755 "${srcdir}/sacd-ripper/tools/sacd_extract/sacd_extract" "${pkgdir}/usr/bin/sacd_extract" + #install readme.txt + install -Dm644 "${srcdir}/sacd-ripper/tools/sacd_extract/readme.txt" "${pkgdir}/usr/share/doc/${pkgname}/$pkgname-readme.txt" +}