APKBUILD 1.26 KB
Newer Older
1
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
ScrumpyJack's avatar
ScrumpyJack committed
3
pkgname=encfs
4
pkgver=1.9.5
Natanael Copa's avatar
Natanael Copa committed
5
_ver=${pkgver/_/-}
6
pkgrel=3
ScrumpyJack's avatar
ScrumpyJack committed
7
pkgdesc="EncFS provides an encrypted filesystem in user-space"
Natanael Copa's avatar
Natanael Copa committed
8
url="https://vgough.github.io/encfs/"
ScrumpyJack's avatar
ScrumpyJack committed
9 10
arch="all"
license="GPL"
11
makedepends="rlog-dev openssl-dev fuse-dev boost-dev
Natanael Copa's avatar
Natanael Copa committed
12
	libtool gettext-dev cmake tinyxml2-dev perl"
13
subpackages="$pkgname-doc $pkgname-lang"
Natanael Copa's avatar
Natanael Copa committed
14
source="$pkgname-$_ver.tar.gz::https://github.com/vgough/encfs/archive/v$_ver.tar.gz"
15 16
options="!check" # No test suite
builddir="$srcdir/$pkgname-$_ver"
ScrumpyJack's avatar
ScrumpyJack committed
17 18

build() {
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
	cd "$builddir"
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi

	mkdir build
	cd build

	cmake .. \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DUSE_INTERNAL_TINYXML=OFF \
		-DINSTALL_LIBENCFS=ON \
		-DBUILD_SHARED_LIBS=ON \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS}
ScrumpyJack's avatar
ScrumpyJack committed
38 39 40 41
	make
}

package() {
42 43
	cd "$builddir"/build
	make DESTDIR="$pkgdir" install
ScrumpyJack's avatar
ScrumpyJack committed
44 45
}

46
sha512sums="036e08ca9bc13b44742aebdee49bf7029d0c6b7e59cd6dedc9a09da2af99482859f6a79eddf07e3db296edaf45aafc48fe08488840e765682e9b192dd6ae4c46  encfs-1.9.5.tar.gz"