36 lines
1.0 KiB
Bash
36 lines
1.0 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=c++utilities
|
|
pkgver=4.3.0
|
|
pkgrel=1
|
|
arch=('i686' 'x86_64')
|
|
pkgdesc='Common C++ classes and routines such as argument parser, IO and conversion utilities'
|
|
license=('GPL')
|
|
depends=()
|
|
optdepends=("$pkgname-doc: API documentation")
|
|
makedepends=('cmake')
|
|
checkdepends=('cppunit')
|
|
url="https://github.com/Martchus/${_reponame}"
|
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
|
|
sha256sums=('3e54207692a7cbfb5195a0b7721aabcc540e08cd96f7518fade65e7db3967497')
|
|
|
|
build() {
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr"
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|