# Maintainer: Moritz Bunkus pkgname="osslsigncode" pkgver="2.8" pkgrel="2" 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=('dd7349e3a64c1d6f63379a14450c8e643c006d2824dc41ce9ecde64ba276466772c440e577aca4a805a49c7ba88aa0dcf5ea73c323abcc4945491407b20e8e96') 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 }