blob: 233fe4c91431451f5be8f0d2b96e0ffe77c56227 (
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
|
# Maintainer: Moritz Bunkus <moritz@bunkus.org>
pkgname="osslsigncode"
pkgver="2.9"
pkgrel="1"
pkgdesc="OpenSSL based Authenticode signing for PE/MSI/Java CAB files"
arch=('i686' 'x86_64')
url="https://github.com/mtrojnar/osslsigncode"
license=('GPL')
depends=('curl' 'openssl')
makedepends=('cmake' 'perl' 'python')
checkdepends=('libfaketime')
source=("https://github.com/mtrojnar/${pkgname}/archive/${pkgver}.tar.gz")
sha512sums=('c88d3050b0f4af5cf4ec899ac1935cd04833ed8c7690298ab1bf0c00c4e53bf5a4f9ee31940d63e29350a6babf43f212e56aa480a67745b6d715a30a8093e3a6')
prepare() {
cmake \
-B build -S "$srcdir/osslsigncode-${pkgver}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
}
build() {
cmake --build build
}
check() {
cd build
ctest Release
}
package() {
# The HTTP server is started by cmake during the configuration
# phase, no matter if we want to run tests or not. Therefore we need
# to ensure the server's been shut down here.
cd build
python Testing/client_http.py || true 2> /dev/null
cd ..
DESTDIR="$pkgdir" cmake --install build
}
|