aboutsummaryrefslogblamecommitdiffstats
path: root/main/encfs/APKBUILD
blob: c85f413541a39ab8224b622545d2872577c5e112 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                   
                                                   
             
            
                  
        
                                                              
                                     

             
                                                    
                                                    
                                        
                                                                                     

                                 

         


















                                                                                          



            

                                      

 
                                                                                                                                                                 
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=encfs
pkgver=1.9.5
_ver=${pkgver/_/-}
pkgrel=3
pkgdesc="EncFS provides an encrypted filesystem in user-space"
url="https://vgough.github.io/encfs/"
arch="all"
license="GPL"
makedepends="rlog-dev openssl-dev fuse-dev boost-dev
	libtool gettext-dev cmake tinyxml2-dev perl"
subpackages="$pkgname-doc $pkgname-lang"
source="$pkgname-$_ver.tar.gz::https://github.com/vgough/encfs/archive/v$_ver.tar.gz"
options="!check" # No test suite
builddir="$srcdir/$pkgname-$_ver"

build() {
	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}
	make
}

package() {
	cd "$builddir"/build
	make DESTDIR="$pkgdir" install
}

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