PKGBUILDs/c++utilities/default/PKGBUILD

30 lines
959 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-11 00:38:45 +02:00
pkgver=3.4.0
pkgrel=1
arch=('i686' 'x86_64')
2015-12-24 16:50:30 +01:00
pkgdesc="Common C++ classes and routines used by my applications 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-11 00:38:45 +02:00
sha256sums=('90434cc672f9c273dd5a338e8a4d5e545faeebd1777019573a85a26d5f2522c2')
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
}