diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-08-09 14:57:13 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-08-09 14:57:13 -0300 |
commit | f9238d2119b5c06165201f747718b283f5f01e36 (patch) | |
tree | 21ef3f8a65942eaa3f2c8bc9c603a553572f478f /pcr/bcunit-git | |
parent | 5ff7c3c3eeeb7b0c24ba32489d8d544f2d279068 (diff) | |
download | abslibre-f9238d2119b5c06165201f747718b283f5f01e36.tar.gz abslibre-f9238d2119b5c06165201f747718b283f5f01e36.tar.bz2 abslibre-f9238d2119b5c06165201f747718b283f5f01e36.zip |
bcunit-git: add new package to [pcr]
Diffstat (limited to 'pcr/bcunit-git')
-rw-r--r-- | pcr/bcunit-git/PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pcr/bcunit-git/PKGBUILD b/pcr/bcunit-git/PKGBUILD new file mode 100644 index 000000000..2b2c3ccef --- /dev/null +++ b/pcr/bcunit-git/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: André Silva <emulatorman@parabola.nu> + +_pkgname=bcunit +pkgname="bcunit-git" +pkgver=r196.f0c669c +pkgrel=1 +pkgdesc="A fork of the defunct project CUnit, with several fixes and patches applied" +arch=('x86_64' 'i686') +url="https://github.com/BelledonneCommunications/bcunit" +license=('GPL2') +makedepends=('cmake' 'git') +conflicts=("${_pkgname}") +provides=("${_pkgname}") +source=("${_pkgname}-${pkgver}::git+https://github.com/BelledonneCommunications/bcunit#branch=master") +sha256sums=('SKIP') + +pkgver() { + cd $_pkgname-$pkgver + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd $_pkgname-$pkgver + cmake . -DCMAKE_INSTALL_PREFIX=$pkgdir/usr + make +} + +package() { + cd $_pkgname-$pkgver + make install + + if [ "${CARCH}" = "x86_64" ]; then + cd "${pkgdir}" + mv usr/lib64 usr/lib + fi +} |