37 lines
965 B
Bash
37 lines
965 B
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.
|
|
|
|
_name=c++utilities
|
|
_reponame=cpp-utilities
|
|
pkgname=c++utilities-git
|
|
pkgver=50.4d6bf67
|
|
pkgrel=1
|
|
arch=('i686' 'x86_64')
|
|
pkgdesc="Common C++ classes and routines such as argument parser, IO and conversion utilities"
|
|
license=('GPL')
|
|
depends=()
|
|
makedepends=('cmake' 'git')
|
|
provides=('c++utilities')
|
|
conflicts=('c++utilities')
|
|
url="https://github.com/Martchus/${_reponame}"
|
|
source=("${_reponame}::git://github.com/Martchus/${_reponame}.git")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "${srcdir}/${pkgname}"
|
|
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame}"
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|