PKGBUILDs/c++utilities/default/PKGBUILD

30 lines
934 B
Bash
Raw Normal View History

# 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.
2015-12-02 02:20:30 +01:00
_reponame=cpp-utilities
pkgname=c++utilities
2016-06-17 19:38:20 +02:00
pkgver=3.4.1
pkgrel=1
arch=('i686' 'x86_64')
2016-08-09 01:55:11 +02:00
pkgdesc="Common C++ classes and routines such as argument parser, IO and conversion utilities"
license=('GPL')
2016-06-11 00:38:45 +02:00
depends=()
optdepends=('c++utilities-doc: API documentation')
2015-12-06 19:17:57 +01:00
makedepends=('cmake')
2015-12-02 02:20:30 +01:00
url="https://github.com/Martchus/${_reponame}"
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
2016-06-17 19:38:20 +02:00
sha256sums=('133fd8619d9ebb9c8f0d683856f55cd71e17cacee178600389140fad59eb8977')
build() {
2015-12-24 16:50:30 +01:00
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr"
2015-12-24 16:50:30 +01:00
make
}
package() {
2015-12-24 16:50:30 +01:00
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
make DESTDIR="${pkgdir}" install
}