outsourced PKGBUILD files
This commit is contained in:
parent
49aa71b8f9
commit
ee83d6c8b7
|
@ -1,27 +0,0 @@
|
||||||
pkgname=qtutilities
|
|
||||||
pkgver=1.0.6
|
|
||||||
pkgrel=1
|
|
||||||
arch=('i686' 'x86_64')
|
|
||||||
pkgdesc="Common Qt related C++ classes and routines used by my
|
|
||||||
applications such as dialogs, widgets and models."
|
|
||||||
license=('GPL')
|
|
||||||
depends=('c++utilities')
|
|
||||||
makedepends=
|
|
||||||
url="https://github.com/Martchus/qtutilities"
|
|
||||||
source=("qtutilities-${pkgver}.tar.gz::https://github.com/Martchus/qtutilities/archive/v${pkgver}.tar.gz")
|
|
||||||
_reponame=qtutilities
|
|
||||||
sha256sums=('cee38afc5eb60b2da4eba64107628ed7')
|
|
||||||
|
|
||||||
# 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
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,48 +0,0 @@
|
||||||
_name=qtutilities
|
|
||||||
pkgname=mingw-w64-qtutilities
|
|
||||||
pkgver=1.0.6
|
|
||||||
pkgrel=1
|
|
||||||
arch=('any')
|
|
||||||
pkgdesc="Common Qt related C++ classes and routines used by my
|
|
||||||
applications such as dialogs, widgets and models. (mingw-w64)."
|
|
||||||
license=('GPL')
|
|
||||||
depends=('mingw-w64-crt' 'mingw-w64-qt5-base' 'mingw-w64-c++utilities')
|
|
||||||
makedepends=('mingw-w64-gcc')
|
|
||||||
url="https://github.com/Martchus/qtutilities"
|
|
||||||
source=("qtutilities-${pkgver}.tar.gz::https://github.com/Martchus/qtutilities/archive/v${pkgver}.tar.gz")
|
|
||||||
_reponame=qtutilities
|
|
||||||
sha256sums=('4e94aff9225d8873f752995c1bcc5f15')
|
|
||||||
options=('staticlibs' '!strip')
|
|
||||||
_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}
|
|
||||||
${_arch}-strip --strip-unneeded ./release/${_name}.dll
|
|
||||||
${_arch}-strip --strip-unneeded ./release/lib${_name}.dll.a
|
|
||||||
install -m755 -D ./release/${_name}.dll $pkgdir/usr/${_arch}/bin/${_name}.dll
|
|
||||||
install -m755 -D ./release/lib${_name}.dll.a $pkgdir/usr/${_arch}/lib/lib${_name}.dll.a
|
|
||||||
popd
|
|
||||||
# include files
|
|
||||||
for dir in aboutdialog enterpassworddialog settingsdialog widgets resources models
|
|
||||||
do
|
|
||||||
mkdir -p $pkgdir/usr/${_arch}/include/${_name}/$dir
|
|
||||||
install -m644 -D ./$dir/*.h $pkgdir/usr/${_arch}/include/${_name}/$dir
|
|
||||||
done
|
|
||||||
done
|
|
||||||
}
|
|
|
@ -72,9 +72,7 @@ contains(DEFINES, GUI_QTWIDGETS) {
|
||||||
|
|
||||||
OTHER_FILES += \
|
OTHER_FILES += \
|
||||||
README.md \
|
README.md \
|
||||||
LICENSE \
|
LICENSE
|
||||||
pkgbuild/default/PKGBUILD \
|
|
||||||
pkgbuild/mingw-w64/PKGBUILD
|
|
||||||
|
|
||||||
# libs and includepath
|
# libs and includepath
|
||||||
CONFIG(debug, debug|release) {
|
CONFIG(debug, debug|release) {
|
||||||
|
|
Loading…
Reference in New Issue