blob: e23e7eac38942f3171932346164210e8de8e0ee0 (
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
|
# Maintainer: Dmitry Lavnikevich <haff@midgard.by>
pkgname=extopts
pkgver=2.0.4
pkgrel=3
pkgdesc="Extended command line arguments parsing library"
arch=('i686' 'x86_64')
url="https://github.com/githaff/extopts"
license=('BSD')
depends=('glibc')
makedepends=('git' 'cmake')
provides=("${pkgname}")
conflicts=("${pkgname}")
options=('staticlibs')
source=("git+https://github.com/githaff/extopts.git#tag=v${pkgver}")
md5sums=('SKIP')
build() {
mkdir -p "${srcdir}/${pkgname}"
cd "${srcdir}/${pkgname}"
cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=Release "../${pkgname}"
make
}
package() {
cd "${srcdir}/${pkgname}"
make DESTDIR="${pkgdir}" install
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|