blob: 3b3d21a8bf404d5b5182b0d78b598848ab8069e8 (
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
|
# Maintainer: kevku <kevku@gmx.com>
pkgname=libdigidocpp
pkgver=4.0.0.1460
_rls_tag=v4.0.0
pkgrel=1
pkgdesc="Library for creating, signing and verification of digitally signed documents, according to XAdES and XML-DSIG standards"
arch=('x86_64')
url="https://www.id.ee/"
license=('LGPL-2.1-or-later')
depends=('minizip' 'zlib' 'openssl' 'libxml2' 'libxslt' 'xmlsec')
makedepends=('cmake' 'git' 'libxsd' 'xsd')
source=("$pkgname-$pkgver::git+https://github.com/open-eid/libdigidocpp.git?signed#tag=$_rls_tag"
"open-eid-cmake::git+https://github.com/open-eid/cmake.git")
sha256sums=("SKIP" "SKIP")
validpgpkeys=(
'D1EBC666EFCBFBD3CFC2EBAA90C0B5E75C3B195D' # Raul Metsma https://github.com/metsma.gpg
)
prepare() {
cd "$srcdir/$pkgname-$pkgver"
[[ -d "$pkgname-build" ]] && rm -r "$pkgname-build"
mkdir "$pkgname-build"
git submodule init
git config submodule.cmake.url $srcdir/open-eid-cmake
git -c protocol.file.allow=always submodule update
}
build() {
cd "$srcdir/$pkgname-$pkgver/$pkgname-build"
export BUILD_NUMBER=${pkgver##*.}
cmake .. -DCMAKE_C_FLAGS:STRING="${CFLAGS} -ffile-prefix-map=$srcdir=." \
-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS} -ffile-prefix-map=$srcdir=." \
-DCMAKE_EXE_LINKER_FLAGS:STRING="${LDFLAGS}" \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DCMAKE_INSTALL_SYSCONFDIR="/etc" \
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=TRUE \
-DCMAKE_DISABLE_FIND_PACKAGE_SWIG=TRUE \
-DCMAKE_DISABLE_FIND_PACKAGE_Boost=TRUE
make
}
package() {
cd "$srcdir/$pkgname-$pkgver/$pkgname-build"
make DESTDIR="$pkgdir/" install
}
|