blob: 067fa262bf70f91559638a97a048f382e11187c2 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
# Contributor: Max Devaine <max@devaine.cz>
pkgname=code-eli-git
pkgver=r836.7ea8de1
pkgrel=1
pkgdesc='Collection of C++ libraries that provide a variety of functionalities.'
arch=('i686' 'x86_64')
url='https://github.com/ramcdona/Code-Eli'
license=('EPL 1.0')
depends=('eigen')
optdepends=('cpptest: unit tests'
'doxygen: documentation')
makedepends=('cmake' 'git')
_name=Code-Eli
provides=('code-eli')
source=("git+https://github.com/ramcdona/Code-Eli.git"
"exponent.patch::https://patch-diff.githubusercontent.com/raw/ramcdona/Code-Eli/pull/9.patch")
md5sums=('SKIP'
'SKIP')
pkgver() {
cd "$_name"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_name}"
patch --forward --strip=1 --input="${srcdir}/exponent.patch"
}
build() {
# Create a build directory
mkdir -p "${srcdir}/${_name}/build"
cd "${srcdir}/${_name}/build"
cmake .. \
-DCMAKE_INSTALL_PREFIX='/usr'
make
}
package() {
cd "${srcdir}/${_name}"
mkdir -p "${pkgdir}/usr/include/eli"
# include
cp -r include/eli/* ${pkgdir}/usr/include/eli
cd "${srcdir}/${_name}/build"
cp -r include/eli/* ${pkgdir}/usr/include/eli
}
|