diff options
author | yjun | 2020-12-10 17:31:16 +0800 |
---|---|---|
committer | yjun | 2020-12-10 17:31:16 +0800 |
commit | f32b6a30f45c24fce84152a4045ca59be3d26010 (patch) | |
tree | 8d66e9f821b9cd8aa8fe745f1ee5f3e0886e14ae | |
download | aur-f32b6a30f45c24fce84152a4045ca59be3d26010.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6b4466f0d22f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = qmc-decoder-git + pkgdesc = Fastest & best convert qmc 2 mp3 | flac tools + pkgver = 2.5.r17.g26be1f5 + pkgrel = 1 + url = https://github.com/Presburger/qmc-decoder + arch = x86_64 + arch = i686 + arch = aarch64 + arch = armv7h + arch = armv6h + arch = arm + license = MIT + makedepends = cmake + makedepends = git + provides = qmc-decoder-bin + provides = qmc-decoder + conflicts = qmc-decoder-bin + conflicts = qmc-decoder + source = git+https://github.com/Presburger/qmc-decoder + source = git+https://github.com/gulrak/filesystem.git + sha256sums = SKIP + sha256sums = SKIP + +pkgname = qmc-decoder-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..670365584ee0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: yjun <jerrysteve1101@gmail.com> + +pkgname=qmc-decoder-git +_pkgname=${pkgname%-git} +pkgver=2.5.r17.g26be1f5 +pkgrel=1 +pkgdesc="Fastest & best convert qmc 2 mp3 | flac tools" +arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'armv6h' 'arm') +url="https://github.com/Presburger/qmc-decoder" +license=('MIT') +makedepends=('cmake' + 'git') +provides=("${_pkgname}-bin" "${_pkgname}") +conflicts=("${_pkgname}-bin" "${_pkgname}") +_submodule='filesystem' +source=("git+https://github.com/Presburger/${_pkgname}" + "git+https://github.com/gulrak/${_submodule}.git") +sha256sums=('SKIP' + 'SKIP') + +pkgver() { + cd ${_pkgname} + + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd ${_pkgname} + + git submodule init + git config submodule.${_submodule}.url $srcdir/${_submodule} + git submodule update +} + +build() { + cmake -B ${_pkgname}/build -S ${_pkgname} \ + -DCMAKE_BUILD_TYPE='None' \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -Wno-dev + make -C ${_pkgname}/build +} + +package() { + _binaryname=${_pkgname/qmc-} + + install -Dm755 ${_pkgname}/build/${_binaryname} ${pkgdir}/usr/bin/${_pkgname} + install -Dm644 ${_pkgname}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} + +# vim: set sw=2 ts=2 et: |