#!/bin/mkpkg # description: RNP is a set of OpenPGP (RFC4880) tools # url: https://www.rnpgp.org/ name=rnp _name=sexpp version=0.18.1 release=2 _sexpp_version=0.9.2 depends=(botan) source=( https://github.com/rnpgp/$name/releases/download/v$version/rnp-v$version.tar.gz https://github.com/rnpgp/$_name/archive/refs/tags/v$_sexpp_version.tar.gz ) renames=( "" $_name-$_sexpp_version.tar.gz ) sha256sums=( "423c8e32e1e591462f759adf8441b1c44bca96d9f5daff13b82e81a79f18ecfd" "00c47b56a4dd5e80aba6b15df4e86d276a2a369737c6b467be1f51a9c29af31e" ) build() { cd "${name}-v${version}" # Copy sexpp sources into the expected folder mkdir -p src/libsexpp cp -r "$SRC/sexpp-${_sexpp_version}/"* src/libsexpp/ cmake -B build -S . \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_TESTING=OFF \ -DBUILD_DOC=OFF \ -DBUILD_TOOLS=ON \ -DBUILD_EXAMPLES=OFF \ -DUSE_BOTAN3=ON \ -DCMAKE_SKIP_RPATH=ON # pkgmk already sets MAKEFLAGS / parallel jobs cmake --build build DESTDIR="$PKG" cmake --install build rm -rf "$PKG/usr/share/doc" "$PKG/usr/share/man" } signify() { untrusted comment: public key RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 } # vim: filetype=sh