outsourced PKGBUILD files

This commit is contained in:
Martchus 2015-06-26 02:31:02 +02:00
parent b9d179972f
commit 9f825bdedd
4 changed files with 1 additions and 78 deletions

View File

@ -1,26 +0,0 @@
pkgname=tageditor
pkgver=1.1.5
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Library for reading and editing meta-data of several media formats."
license=('GPL')
depends=('qt5-base' 'qt5-script' 'qt5-webkit' 'qtutilities' 'tagparser')
makedepends=('qt5-tools')
install=${pkgname}.install
url="https://github.com/Martchus/tageditor"
source=("tageditor-${pkgver}.tar.gz::https://github.com/Martchus/tageditor/archive/v${pkgver}.tar.gz")
_reponame=tageditor
sha256sums=('3f928ba196940cc539d0af752b69339a')
# head end
build() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
INSTALL_ROOT=$pkgdir/usr/ qmake-qt5 "$pkgname.pro" -r -spec linux-g++
make
}
package() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
make install
}

View File

@ -1,11 +0,0 @@
post_install() {
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}

View File

@ -1,38 +0,0 @@
_name=tageditor
pkgname=mingw-w64-tageditor
pkgver=1.1.5
pkgrel=1
arch=('any')
pkgdesc="Library for reading and editing meta-data of several media formats (mingw-w64)."
license=('GPL')
depends=('mingw-w64-crt' 'mingw-w64-qt5-base' 'mingw-w64-qt5-script' 'mingw-w64-qt5-webkit' 'mingw-w64-qtutilities' 'mingw-w64-tagparser')
makedepends=('mingw-w64-gcc' 'mingw-w64-qt5-tools')
url="https://github.com/Martchus/tageditor"
source=("tageditor-${pkgver}.tar.gz::https://github.com/Martchus/tageditor/archive/v${pkgver}.tar.gz")
_reponame=tageditor
sha256sums=('4e94aff9225d8873f752995c1bcc5f15')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
# head end
build() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
# build utilities for each architecture
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
INSTALL_ROOT=$pkgdir/usr/ ${_arch}-qmake-qt5 -r ../${_name}.pro
make
popd
done
}
package() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
for _arch in ${_architectures}; do
# bin stuff
pushd build-${_arch}
strip --strip-unneeded ./release/${_name}.exe
install -m755 -D ./release/${_name}.exe $pkgdir/usr/${_arch}/bin/${_name}.exe
popd
done
}

View File

@ -98,9 +98,7 @@ include(translations.pri)
OTHER_FILES += \
README.md \
LICENSE \
pkgbuild/default/PKGBUILD \
pkgbuild/mingw-w64/PKGBUILD
LICENSE
CONFIG(debug, debug|release) {
LIBS += -L../../ -lc++utilitiesd -ltagparserd