outsourced PKGBUILD files
This commit is contained in:
parent
c891cf5b36
commit
1e755b4489
|
@ -9,4 +9,4 @@ make && make install
|
||||||
```
|
```
|
||||||
As you can see, the qmake build system is used. However the library itself does *not* depend on Qt.
|
As you can see, the qmake build system is used. However the library itself does *not* depend on Qt.
|
||||||
|
|
||||||
The repository also contains PKGBUILD files for building Arch Linux packages. A PKGBUILD file to build for Windows using the Mingw-w64 compiler is also included.
|
The repository PKGBUILDs (also on GitHub) contains files for building Arch Linux packages. A PKGBUILD file to build for Windows using the Mingw-w64 compiler is also included.
|
||||||
|
|
|
@ -58,9 +58,7 @@ HEADERS += \
|
||||||
|
|
||||||
OTHER_FILES += \
|
OTHER_FILES += \
|
||||||
README.md \
|
README.md \
|
||||||
LICENSE \
|
LICENSE
|
||||||
pkgbuild/default/PKGBUILD \
|
|
||||||
pkgbuild/mingw-w64/PKGBUILD
|
|
||||||
|
|
||||||
# installs
|
# installs
|
||||||
target.path = $$(INSTALL_ROOT)/lib
|
target.path = $$(INSTALL_ROOT)/lib
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
# Maintainer: Martchus <martchus@gmx.net>
|
|
||||||
pkgname=c++utilities
|
|
||||||
pkgver=1.0.6
|
|
||||||
pkgrel=1
|
|
||||||
arch=('i686' 'x86_64')
|
|
||||||
pkgdesc="Common C++ classes and routines used by my applications such
|
|
||||||
as argument parser, IO and conversion utilities."
|
|
||||||
license=('GPL')
|
|
||||||
depends=('qt5-base')
|
|
||||||
makedepends=
|
|
||||||
url="https://github.com/Martchus/cpp-utilities"
|
|
||||||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/cpp-utilities/archive/v${pkgver}.tar.gz")
|
|
||||||
_reponame=cpp-utilities
|
|
||||||
sha256sums=('4e94aff9225d8873f752995c1bcc5f15')
|
|
||||||
|
|
||||||
# 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=c++utilities
|
|
||||||
pkgname=mingw-w64-c++utilities
|
|
||||||
pkgver=1.0.6
|
|
||||||
pkgrel=1
|
|
||||||
arch=('any')
|
|
||||||
pkgdesc="Common C++ classes and routines used by my applications such
|
|
||||||
as argument parser, IO and conversion utilities (mingw-w64)."
|
|
||||||
license=('GPL')
|
|
||||||
depends=('mingw-w64-crt' 'mingw-w64-qt5-base')
|
|
||||||
makedepends=('mingw-w64-gcc')
|
|
||||||
url="https://github.com/Martchus/cpp-utilities"
|
|
||||||
source=("c++utilities-${pkgver}.tar.gz::https://github.com/Martchus/cpp-utilities/archive/v${pkgver}.tar.gz")
|
|
||||||
_reponame=cpp-utilities
|
|
||||||
sha256sums=('4e94aff9225d8873f752995c1bcc5f15')
|
|
||||||
options=('staticlibs' '!strip')
|
|
||||||
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
|
|
||||||
|
|
||||||
# head end
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
||||||
# build 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 application chrono conversion io math misc
|
|
||||||
do
|
|
||||||
mkdir -p $pkgdir/usr/${_arch}/include/${_name}/$dir
|
|
||||||
install -m644 -D ./$dir/*.h $pkgdir/usr/${_arch}/include/${_name}/$dir
|
|
||||||
done
|
|
||||||
done
|
|
||||||
}
|
|
Loading…
Reference in New Issue