# Compiling Time: 1.52 SBU
# Maintainer: Melko <melko@frugalware.org>

pkgname=tcplay
pkgver=2.0
pkgrel=4
pkgdesc="Free and simple TrueCrypt implementation based on dm-crypt."
depends=('systemd')
groups=('apps-extra')
archs=('x86_64')
_F_github_name="tc-play"
_F_github_author="bwalex"
_F_github_tag_v=y
Finclude github cmake
Fpkgversep="/v"
sha1sums=('372687615a3ea076a0610689ab6cf8d9abd1e1a7')

build() {

	Fcd tc-play-$pkgver

	## yay
	## tcplay.c.o: relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can
	## not be used when making a shared object; recompile with -fPIC
	Fsed "-fPIE" "-fPIE -fPIC" CMakeLists.txt

	## WTF .. -DLIB_SUFFIX= is broken ..
	Fsed 'lib$(LIBSUFFIX)' 'lib' Makefile.classic
	Fsed 'lib${LIB_SUFFIX}' 'lib' CMakeLists.txt
	CMake_build

}
# optimization OK
