blob: b5889999408e904a9bc6ba64d118097a098794c2 (
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
|
# Maintainer: Bruno Silva <brunofernandes at ua dot pt>
pkgname=openpace-git
_pkgname=openpace
pkgver=1.1.3.r12.g16f9947
pkgrel=3
pkgdesc="OpenPACE - Cryptographic library for EAC version 2"
arch=('i686' 'x86_64')
url="https://frankmorgner.github.io/openpace"
license=('LGPL3')
depends=('openssl')
makedepends=('autoconf'
'make'
'git'
'libtool'
'gengetopt'
'help2man')
optdepends=()
provides=(openpace)
conflicts=(openpace)
replaces=()
source=('git+https://github.com/frankmorgner/openpace.git#branch=master')
sha512sums=('SKIP')
pkgver() {
cd "$_pkgname"
( set -o pipefail
git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
)
}
build() {
cd ${srcdir}/${_pkgname}
autoreconf --verbose --install
./configure --prefix=/usr
make -j1
}
package() {
cd ${srcdir}/${_pkgname}
DESTDIR="${pkgdir}" make install
mv "${pkgdir}"/usr/etc "${pkgdir}"/
# cleanup
rm -rf "${pkgdir}"/usr/bin/example
}
|