* Use an older glibc so resulting binaries can run on older systems (without having to link statically against glibc) * Call packages static-compat-* to make it clear that these packages are intended for compatibility with older distributions * Add further libraries to get static-compat-qt6-base and some other static-compat-qt6-* packages building
50 lines
1.5 KiB
Bash
50 lines
1.5 KiB
Bash
# Maintainer: Martchus <martchus@gmx.net>
|
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
|
# you also find the URL of a binary repository.
|
|
|
|
_reponame=cpp-utilities
|
|
pkgname=static-compat-c++utilities
|
|
_name=${pkgname#static-compat-}
|
|
pkgver=5.14.0
|
|
pkgrel=1
|
|
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
|
|
pkgdesc='Common C++ classes and routines such as argument parser, IO and conversion utilities'
|
|
license=('GPL')
|
|
depends=('gcc-libs-static-compat')
|
|
optdepends=("$_name-doc: API documentation")
|
|
makedepends=('ninja' 'static-compat-cmake')
|
|
checkdepends=('static-compat-cppunit')
|
|
url="https://github.com/Martchus/${_reponame}"
|
|
source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
|
sha256sums=('7a173bb2355a9b5fef17d3fe6795f026f58afe63b1295f8567c042422e2cde0e')
|
|
|
|
prepare() {
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
}
|
|
|
|
build() {
|
|
check_buildoption ccache y && ccache_args='
|
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache
|
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache'
|
|
source static-compat-environment
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
static-compat-cmake \
|
|
-G Ninja \
|
|
-DCMAKE_BUILD_TYPE:STRING='Release' \
|
|
.
|
|
ninja
|
|
}
|
|
|
|
check() {
|
|
source static-compat-environment
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
ninja check
|
|
}
|
|
|
|
package() {
|
|
source static-compat-environment
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
DESTDIR="${pkgdir}" ninja install
|
|
}
|