blob: bf70dd23169a2226081ed86e213de6b512b41f3c (
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
|
# Maintainer: Luke Granger-Brown <archlinux@lukegb.com>
pkgname=x509ls-git
pkgver=r29.cc82552
pkgrel=1
pkgdesc="ncurses-based SSL certificate viewer"
arch=(x86_64)
url="https://github.com/skip2/x509ls"
license=('MIT')
groups=()
depends=('ncurses' 'openssl')
makedepends=('git' 'cmake')
provides=('x509ls')
conflicts=('x509ls')
replaces=('x509ls')
backup=()
options=()
install=
source=('git://github.com/skip2/x509ls.git')
noextract=()
md5sums=('SKIP') #generate with 'makepkg -g'
_gitroot='git://github.com/skip2/x509ls.git'
_gitname=x509ls
pkgver() {
cd "$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
msg "Starting build..."
rm -rf "$srcdir/$_gitname-build"
mkdir "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr $srcdir/$_gitname
make
}
package() {
cd "$srcdir/$_gitname-build"
make DESTDIR="$pkgdir/" install
}
# vim:set ts=2 sw=2 et:
|