blob: 39ffc69da2227703619ce5e5ce7cd7c97ac919b6 (
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
|
# Maintainer: bartus <aur@bartus.33mail.com>
pkgname=cxxopts
#for fragment you can use one of: #commit=, #tag=, #branch=
#fragment=
pkgver=2.1.0.r4.gca6e9f7
pkgrel=1
pkgdesc="Lightweight C++ command line option parser"
arch=(any)
url="https://github.com/jarro2783/cxxopts"
license=(MIT)
makedepends=(git cmake)
source=(${pkgname}::git+https://github.com/jarro2783/cxxopts.git${fragment})
md5sums=(SKIP) #generate with 'makepkg -g'
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd ${pkgname}
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
cd ${pkgname}/build
make DESTDIR="$pkgdir/" install
install -D -m644 "../LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
|