2015-08-04 20:04:32 +02:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
2016-03-25 21:43:59 +01:00
|
|
|
|
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
|
|
|
# you also find the URL of a binary repository.
|
|
|
|
|
2016-09-11 23:37:58 +02:00
|
|
|
# set the web view provider: either webkit, webengine, auto or none
|
2019-01-03 16:40:14 +01:00
|
|
|
_webview_provider=${TAGEDITOR_WEBVIEW_PROVIDER:-webengine}
|
2016-04-26 21:19:49 +02:00
|
|
|
|
2016-09-11 23:37:58 +02:00
|
|
|
# set the JavaScript provider: either script, qml, auto or none
|
2018-11-01 05:16:53 +01:00
|
|
|
_js_provider=${TAGEDITOR_JS_PROVIDER:-qml}
|
2016-04-26 21:19:49 +02:00
|
|
|
|
2018-01-12 16:49:18 +01:00
|
|
|
# whether the experimental JSON export is enabled: ON or OFF
|
2018-11-01 05:16:53 +01:00
|
|
|
_json_export=${TAGEDITOR_JSON_EXPORT:-ON}
|
2018-01-12 16:49:18 +01:00
|
|
|
|
2015-12-02 02:20:30 +01:00
|
|
|
_reponame=tageditor
|
2015-06-24 23:12:08 +02:00
|
|
|
pkgname=tageditor
|
2022-01-02 23:59:19 +01:00
|
|
|
pkgver=3.6.0
|
2016-04-26 21:19:49 +02:00
|
|
|
pkgrel=1
|
2018-11-01 05:16:53 +01:00
|
|
|
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
|
2017-04-30 02:11:16 +02:00
|
|
|
pkgdesc='A tag editor with Qt GUI and command-line interface supporting MP4/M4A/AAC (iTunes), ID3, Vorbis, Opus, FLAC and Matroska'
|
2015-06-24 23:12:08 +02:00
|
|
|
license=('GPL')
|
2018-12-12 18:59:49 +01:00
|
|
|
depends=('qtutilities' 'tagparser' 'desktop-file-utils' 'xdg-utils')
|
2019-01-03 16:40:14 +01:00
|
|
|
[[ $_webview_provider == none ]] && [[ $_js_provider == none ]] && depends+=('qt5-base')
|
2017-03-09 23:21:29 +01:00
|
|
|
[[ $_webview_provider == webkit ]] && depends+=('qt5-webkit')
|
2019-01-03 16:40:14 +01:00
|
|
|
[[ $_webview_provider == webengine ]] && depends+=('qt5-webengine')
|
|
|
|
[[ $_js_provider == script ]] && depends+=('qt5-script')
|
|
|
|
[[ $_js_provider == qml ]] && depends+=('qt5-declarative')
|
2020-10-04 01:04:01 +02:00
|
|
|
makedepends=('cmake' 'ninja' 'qt5-tools' 'mesa')
|
2018-01-12 16:49:18 +01:00
|
|
|
[[ $_json_export == ON ]] && makedepends+=('reflective-rapidjson')
|
2020-06-10 18:47:25 +02:00
|
|
|
checkdepends=('cppunit' 'jq')
|
2015-12-02 02:20:30 +01:00
|
|
|
url="https://github.com/Martchus/${_reponame}"
|
2019-01-10 13:44:55 +01:00
|
|
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
2022-01-02 23:59:19 +01:00
|
|
|
sha256sums=('a01b68af858b4802e498e926e2e75efa400c1922a73d65693f0795eb79956259')
|
2015-06-24 23:12:08 +02:00
|
|
|
|
|
|
|
build() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
2016-04-26 21:19:49 +02:00
|
|
|
cmake \
|
2020-10-04 01:04:01 +02:00
|
|
|
-G Ninja \
|
2019-05-04 16:29:53 +02:00
|
|
|
-DCMAKE_BUILD_TYPE:STRING='Release' \
|
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
|
|
|
|
-DBUILD_SHARED_LIBS:BOOL=ON \
|
2016-04-26 21:19:49 +02:00
|
|
|
-DWEBVIEW_PROVIDER="${_webview_provider}" \
|
2018-01-12 16:49:18 +01:00
|
|
|
-DJS_PROVIDER="${_js_provider}" \
|
|
|
|
-DENABLE_JSON_EXPORT="${_json_export}" \
|
2019-02-19 18:38:43 +01:00
|
|
|
-DREFLECTION_GENERATOR_EXECUTABLE:FILEPATH='/usr/bin/reflective_rapidjson_generator' \
|
2020-11-04 14:28:20 +01:00
|
|
|
-DBUILTIN_TRANSLATIONS:BOOL=ON \
|
|
|
|
-DBUILTIN_TRANSLATIONS_OF_QT:BOOL=OFF \
|
2019-02-19 18:38:43 +01:00
|
|
|
.
|
2020-10-04 01:04:01 +02:00
|
|
|
ninja
|
2015-06-24 23:12:08 +02:00
|
|
|
}
|
|
|
|
|
2017-09-14 23:24:12 +02:00
|
|
|
check() {
|
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
|
|
if [[ $TEST_FILE_PATH ]]; then
|
2020-10-04 01:04:01 +02:00
|
|
|
ninja check
|
2017-09-14 23:24:12 +02:00
|
|
|
else
|
2017-10-18 22:06:16 +02:00
|
|
|
msg2 'Skipping execution of testsuite because the environment variable TEST_FILE_PATH is not set.'
|
2017-09-14 23:24:12 +02:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2015-06-24 23:12:08 +02:00
|
|
|
package() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
2020-10-04 01:04:01 +02:00
|
|
|
DESTDIR="${pkgdir}" ninja install
|
2015-06-24 23:12:08 +02:00
|
|
|
}
|