2015-08-26 21:21:22 +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
|
2016-04-24 22:16:30 +02:00
|
|
|
_webview_provider=webkit
|
|
|
|
|
2016-09-11 23:37:58 +02:00
|
|
|
# set the JavaScript provider: either script, qml, auto or none
|
2016-04-24 22:16:30 +02:00
|
|
|
_js_provider=qml
|
|
|
|
|
2018-01-12 16:49:18 +01:00
|
|
|
# whether the experimental JSON export is enabled: ON or OFF
|
|
|
|
_json_export=ON
|
|
|
|
|
2015-12-02 02:20:30 +01:00
|
|
|
_reponame=tageditor
|
2015-08-26 21:21:22 +02:00
|
|
|
pkgname=tageditor-git
|
2016-09-11 23:37:58 +02:00
|
|
|
_name=${pkgname%-git}
|
2018-03-07 20:18:44 +01:00
|
|
|
pkgver=374.6b342ea
|
2016-04-20 00:32:19 +02:00
|
|
|
pkgrel=1
|
2015-08-26 21:21:22 +02:00
|
|
|
arch=('i686' 'x86_64')
|
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-08-26 21:21:22 +02:00
|
|
|
license=('GPL')
|
2017-03-21 01:02:22 +01:00
|
|
|
depends=('qtutilities-git' 'tagparser-git' 'desktop-file-utils' 'xdg-utils')
|
2016-04-26 21:19:49 +02:00
|
|
|
[[ $_webview_provider == none ]] && [[ $_js_provider == none ]] && depends+=('qt5-base')
|
|
|
|
[[ $_webview_provider == webkit ]] && depends+=('qt5-webkit')
|
|
|
|
[[ $_webview_provider == webengine ]] && depends+=('qt5-webengine')
|
|
|
|
[[ $_js_provider == script ]] && depends+=('qt5-script')
|
|
|
|
[[ $_js_provider == qml ]] && depends+=('qt5-declarative')
|
2018-06-10 23:16:33 +02:00
|
|
|
makedepends=('cmake' 'qt5-tools' 'git' 'mesa')
|
2018-05-08 19:05:35 +02:00
|
|
|
[[ $_json_export == ON ]] && makedepends+=('reflective-rapidjson-git')
|
2017-09-14 23:24:12 +02:00
|
|
|
checkdepends=('cppunit')
|
2016-09-11 23:37:58 +02:00
|
|
|
provides=("${_name}")
|
|
|
|
conflicts=("${_name}")
|
2015-12-02 02:20:30 +01:00
|
|
|
url="https://github.com/Martchus/${_reponame}"
|
2017-04-02 19:21:23 +02:00
|
|
|
source=("${_reponame}::${MARTCHUS_GIT_URL_PREFIX:-git://github.com/Martchus}/${_reponame}.git")
|
2015-08-27 22:41:20 +02:00
|
|
|
sha256sums=('SKIP')
|
2015-08-26 21:21:22 +02:00
|
|
|
|
|
|
|
pkgver() {
|
2017-03-21 01:02:22 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
|
2015-12-24 16:50:30 +01:00
|
|
|
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
2015-08-26 21:21:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2016-02-27 21:08:28 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
|
2016-04-24 22:16:30 +02:00
|
|
|
cmake \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
|
|
|
-DWEBVIEW_PROVIDER="${_webview_provider}" \
|
2018-01-12 16:49:18 +01:00
|
|
|
-DJS_PROVIDER="${_js_provider}" \
|
|
|
|
-DENABLE_JSON_EXPORT="${_json_export}" \
|
|
|
|
-DREFLECTION_GENERATOR_EXECUTABLE:FILEPATH='/usr/bin/reflective_rapidjson_generator'
|
2015-12-24 16:50:30 +01:00
|
|
|
make
|
2015-08-26 21:21:22 +02:00
|
|
|
}
|
|
|
|
|
2017-09-14 23:24:12 +02:00
|
|
|
check() {
|
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
|
|
|
|
if [[ $TEST_FILE_PATH ]]; then
|
|
|
|
make check
|
|
|
|
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-08-26 21:21:22 +02:00
|
|
|
package() {
|
2016-02-27 21:08:28 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
|
2016-04-20 00:32:19 +02:00
|
|
|
make DESTDIR="${pkgdir}" install
|
2015-08-26 21:21:22 +02:00
|
|
|
}
|