pkgname=encfs pkgver=1.9.1 pkgrel=2 pkgdesc='Encrypted filesystem in user-space' arch=('x86_64') url='https://vgough.github.io/encfs/' license=('LGPL') depends=('openssl' 'fuse2' 'tinyxml2') makedepends=('cmake') source=(https://github.com/vgough/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz{,.asc} encfs-openssl-1.1.patch) validpgpkeys=('E583187B2E26D6EF8BF4556333C65E29813C14DF') # Valient Gough sha256sums=('67203aeff7a06ce7be83df4948db296be89a00cffe1108a0a41c96d7481106a4' 'SKIP' '2ffc0bbde3aed0c86b5d64865108b0538503ec0ccc9a7a3c1a0156cec4ebc937') prepare() { cd $pkgname-$pkgver # fix build with openssl 1.1 (Debian) patch -p1 -i ../encfs-openssl-1.1.patch } build() { cd "${srcdir}" mkdir build cd build cmake ../$pkgname-$pkgver \ -DUSE_INTERNAL_TINYXML=OFF \ -DINSTALL_LIBENCFS=ON \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_INSTALL_PREFIX=/usr make } check() { cd "${srcdir}"/build make test } package() { cd "${srcdir}"/build make DESTDIR="${pkgdir}" install # FS#51802 chmod +x "${pkgdir}"/usr/bin/encfssh }