-
Notifications
You must be signed in to change notification settings - Fork 7
/
PKGBUILD
executable file
·41 lines (33 loc) · 950 Bytes
/
PKGBUILD
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
# Maintainer: Miguel Raggi <[email protected]>
pkgname=discreture
pkgver=1.2.1
pkgrel=1
pkgdesc="A modern C++14 library providing iterable objects such as combinations, permutations, partitions, etc."
arch=('x86_64')
url="http://github.com/mraggi/discreture"
license=('Apache')
depends=('boost')
makedepends=('cmake' 'git' 'gtest')
provides=('discreture')
conflicts=('discreture')
replaces=('discreture')
# options=('debug')
source=("git+https://github.com/mraggi/discreture.git")
sha256sums=('SKIP')
# prepare() {
# git clone https://github.com/mraggi/discreture.git
#
# }
build() {
cd "$srcdir/discreture"
rm -rf build
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=OFF ..
make
}
package() {
cd "$srcdir/discreture"
install -Dm644 README.md "$pkgdir/usr/share/doc/$_gitname/README.md" || return 1
cd build
make DESTDIR="$pkgdir/" install
}