2015-06-24 23:12:08 +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.
|
|
|
|
|
2015-12-02 02:20:30 +01:00
|
|
|
_reponame=cpp-utilities
|
2015-06-24 23:12:08 +02:00
|
|
|
pkgname=c++utilities
|
2024-02-06 19:01:02 +01:00
|
|
|
pkgver=5.24.6
|
2023-12-05 11:50:23 +01:00
|
|
|
pkgrel=1
|
2018-11-01 05:16:53 +01:00
|
|
|
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
|
2016-09-11 23:37:58 +02:00
|
|
|
pkgdesc='Common C++ classes and routines such as argument parser, IO and conversion utilities'
|
2015-06-24 23:12:08 +02:00
|
|
|
license=('GPL')
|
2020-08-26 18:56:25 +02:00
|
|
|
depends=('gcc-libs')
|
2016-09-11 23:37:58 +02:00
|
|
|
optdepends=("$pkgname-doc: API documentation")
|
2020-10-04 01:04:01 +02:00
|
|
|
makedepends=('cmake' 'ninja')
|
2016-09-11 23:37:58 +02:00
|
|
|
checkdepends=('cppunit')
|
2022-07-09 12:21:22 +02:00
|
|
|
provides=(libc++utilities.so)
|
2015-12-02 02:20:30 +01:00
|
|
|
url="https://github.com/Martchus/${_reponame}"
|
2023-12-05 11:50:23 +01:00
|
|
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
2024-02-06 19:01:02 +01:00
|
|
|
sha256sums=('2a42a0595d7d36ebe4b3e24fb3347b8800bc82ab7abd113c753fd0f8cb4af6d8')
|
2015-06-24 23:12:08 +02:00
|
|
|
|
|
|
|
build() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
2019-05-04 16:29:53 +02:00
|
|
|
cmake \
|
2020-10-04 01:04:01 +02:00
|
|
|
-G Ninja \
|
2019-05-04 16:29:53 +02:00
|
|
|
-DCMAKE_BUILD_TYPE:STRING='Release' \
|
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
|
|
|
|
-DBUILD_SHARED_LIBS:BOOL=ON \
|
|
|
|
.
|
2020-09-10 20:11:07 +02:00
|
|
|
ninja
|
2015-06-24 23:12:08 +02:00
|
|
|
}
|
|
|
|
|
2016-09-11 23:37:58 +02:00
|
|
|
check() {
|
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
2020-09-10 20:11:07 +02:00
|
|
|
ninja check
|
2016-09-11 23:37:58 +02:00
|
|
|
}
|
|
|
|
|
2015-06-24 23:12:08 +02:00
|
|
|
package() {
|
2015-12-24 16:50:30 +01:00
|
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
2020-10-04 01:04:01 +02:00
|
|
|
DESTDIR="${pkgdir}" ninja install
|
2015-06-24 23:12:08 +02:00
|
|
|
}
|