diff options
author | Frikilinux | 2021-07-28 00:34:01 -0300 |
---|---|---|
committer | Frikilinux | 2021-07-28 00:34:01 -0300 |
commit | 58ca6ff7b6af69bc45672dbd4775dcf88d15bcfa (patch) | |
tree | 57d71e76efccff7fcceebd4f69a59e5691b5fb2e | |
download | aur-58ca6ff7b6af69bc45672dbd4775dcf88d15bcfa.tar.gz |
First commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | CMakeLists.patch | 20 | ||||
-rw-r--r-- | PKGBUILD | 34 |
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..47f2f90ef317 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = mqa-identifier + pkgdesc = Tool to identify MQA encoding and Master's Sample Rates + pkgver = 1.3 + pkgrel = 1 + url = https://github.com/purpl3F0x/MQA_identifier + arch = x86_64 + license = Apache + makedepends = python-setuptools + depends = flac + depends = qt5-base + source = https://github.com/purpl3F0x/MQA_identifier/archive/refs/tags/v1.3.tar.gz + source = CMakeLists.patch + sha256sums = ec9623af7babd805ae24dc9befb19aa9c6d85985fdb9105f24a175c35d460f11 + sha256sums = 5042b493eaf1468bb5de65f140878ab9886e234041f086822386cc2a74a72e7c + +pkgname = mqa-identifier diff --git a/CMakeLists.patch b/CMakeLists.patch new file mode 100644 index 000000000000..2ef192890240 --- /dev/null +++ b/CMakeLists.patch @@ -0,0 +1,20 @@ +--- pkg.orig/CMakeLists.txt 2021-07-27 19:35:56.935858221 -0300 ++++ pkg.new/CMakeLists.txt 2021-07-27 19:38:28.682531604 -0300 +@@ -4,14 +4,14 @@ + set(CMAKE_CXX_STANDARD 17) + + if (NOT (MSVC)) +- set(CMAKE_CXX_FLAGS "-O3 -march=native -Wall -static -static-libstdc++ -ffast-math") ++ set(CMAKE_CXX_FLAGS "-O2 -fpermissive") + else (NOT (MSVC)) + set(CMAKE_CXX_FLAGS "/O2") + STRING(REPLACE "/O2" "/Od" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE}) + endif () + + find_library(FLAC++_LIBRARIES NAMES FLAC++ FLAC) +-find_library(OGG NAMES OGG) ++find_library(ogg NAMES ogg) + + add_executable(${PROJECT_NAME} main.cc) +-target_link_libraries(${PROJECT_NAME} FLAC++ FLAC OGG) ++target_link_libraries(${PROJECT_NAME} FLAC++ FLAC ogg) diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..34bebcdf95f6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer : Frikilinux <frikilinux@gmail.com> + +pkgname=mqa-identifier +_pkgname=MQA_identifier +pkgver=1.3 +pkgrel=1 +pkgdesc="Tool to identify MQA encoding and Master's Sample Rates" +arch=('x86_64') +url="https://github.com/purpl3F0x/MQA_identifier" +license=('Apache') +depends=('flac' 'qt5-base') +makedepends=('python-setuptools') +source=("${url}/archive/refs/tags/v${pkgver}.tar.gz" + "CMakeLists.patch") +sha256sums=('ec9623af7babd805ae24dc9befb19aa9c6d85985fdb9105f24a175c35d460f11' + '5042b493eaf1468bb5de65f140878ab9886e234041f086822386cc2a74a72e7c') +prepare() { + cd "${_pkgname}-${pkgver}" + patch -Np1 -i "${srcdir}/CMakeLists.patch" + sed -i "s%\.\/\/MQA_identifier%mqa-identifier%g" "gui/mainwindow.cpp" +} + +build() { + cmake -B build -S "${_pkgname}-${pkgver}" + make -C build + + qmake "${_pkgname}-${pkgver}/gui" -o build_gui/Makefile + make -C build_gui +} + +package() { + install -Dm755 "build/MQA_identifier" "${pkgdir}/usr/bin/mqa-identifier" + install -Dm755 "build_gui/mqa_id_gui" "${pkgdir}/usr/bin/mqa-identifier-gui" +} |