core/encfs/PKGBUILD

38 lines
826 B
Bash
Raw Normal View History

2011-04-05 07:20:22 +08:00
pkgname=encfs
2016-11-21 03:27:11 +08:00
pkgver=1.9.1
pkgrel=1
2011-04-05 07:20:22 +08:00
pkgdesc='Encrypted filesystem in user-space'
arch=('x86_64')
2011-04-05 07:20:22 +08:00
url='http://www.arg0.net/encfs'
license=('GPL')
2016-11-21 03:27:11 +08:00
depends=('openssl' 'fuse' 'boost-libs')
makedepends=('boost' 'cmake')
2011-04-05 07:20:22 +08:00
options=('!libtool')
source=("https://github.com/vgough/encfs/releases/download/v${pkgver}/encfs-${pkgver}.tar.gz")
2016-11-21 03:27:11 +08:00
md5sums=('7cbf9cc3c5af49b46703ce6ba70d22a4')
2011-04-05 07:20:22 +08:00
build(){
2016-11-21 03:27:11 +08:00
cd ${srcdir}
2011-04-05 07:20:22 +08:00
2016-11-21 03:27:11 +08:00
mkdir build && cd build
cmake ../${pkgname}-${pkgver} \
-DUSE_INTERNAL_TINYXML=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALL_LIBENCFS=ON \
-DBUILD_SHARED_LIBS=ON
2011-04-05 07:20:22 +08:00
make
}
2016-11-21 03:27:11 +08:00
check() {
cd ${srcdir}/build
make test
}
2011-04-05 07:20:22 +08:00
package() {
2016-11-21 03:27:11 +08:00
cd ${srcdir}/build
2011-04-05 07:20:22 +08:00
make DESTDIR=${pkgdir} install
2016-11-21 03:27:11 +08:00
cp internal/tinyxml2-3.0.0/libtinyxml2.so.3 "${pkgdir}"/usr/lib/libtinyxml2.so.3
chmod +x "${pkgdir}"/usr/bin/encfssh
2012-01-14 06:59:06 +08:00
}