blob: 4cc627f01c27c4b3f14531143a5474a7cbfb9e71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname=bcunit-git
_pkgname=bcunit
pkgver=3.0.2+12+g3c720fb
pkgrel=1
pkgdesc="A fork of CUnit, a C unit testing framework"
arch=('x86_64')
url="http://www.linphone.org/"
license=('GPL')
depends=()
makedepends=('cmake' 'git')
provides=('bcunit=$pkgver')
conflicts=('bcunit')
source=("git+https://gitlab.linphone.org/BC/public/bcunit.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/\1/; s/-/+/g'
}
build() {
cd "${srcdir}"
mkdir -p build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DENABLE_STATIC=NO \
"../$_pkgname"
make
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
}
|