diff options
author | Mikalai Ramanovich | 2016-11-13 16:34:51 +0300 |
---|---|---|
committer | Mikalai Ramanovich | 2016-11-13 16:34:51 +0300 |
commit | 31bcf46be8c345efc4fbddb1cbaf931d943f1de4 (patch) | |
tree | 55e84a6b57486cced10092a5c5ac98c79811dc55 | |
download | aur-31bcf46be8c345efc4fbddb1cbaf931d943f1de4.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | 1.patch | 13 | ||||
-rw-r--r-- | 2.patch | 49 | ||||
-rw-r--r-- | PKGBUILD | 34 |
4 files changed, 116 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9d6933fe8ca8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Sun Nov 13 13:34:32 UTC 2016 +pkgbase = tcplay-veracrypt + pkgdesc = Free and simple TrueCrypt implementation based on dm-crypt. + pkgver = 2.0 + pkgrel = 1 + url = https://github.com/veracrypt/tc-play + arch = i686 + arch = x86_64 + license = BSD-2-Clause + makedepends = cmake + depends = device-mapper + provides = tcplay + conflicts = tcplay + replaces = tcplay + source = git+https://github.com/veracrypt/tc-play.git + sha256sums = SKIP + +pkgname = tcplay-veracrypt + diff --git a/1.patch b/1.patch new file mode 100644 index 000000000000..1b14a656c620 --- /dev/null +++ b/1.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6238866..21fe3be 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -15,7 +15,7 @@ set (CFLAGS_WARN "-Wall -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-p + set (CFLAGS_DEBUG "-O0 -g3 -DDEBUG") + set (CFLAGS_OPT "-O3") + set (CFLAGS_VER "-DMAJ_VER=${VERSION_MAJOR} -DMIN_VER=${VERSION_MINOR}") +-set (CFLAGS_COMMON "-std=c99 -fPIE ${CFLAGS_LINUX} ${CFLAGS_WARN} ${CFLAGS_VER}") ++set (CFLAGS_COMMON "-std=c99 -fPIC ${CFLAGS_LINUX} ${CFLAGS_WARN} ${CFLAGS_VER}") + if ($ENV{DEBUG}) + set (CFLAGS_COMMON "${CFLAGS_COMMON} ${CFLAGS_DEBUG}") + else() diff --git a/2.patch b/2.patch new file mode 100644 index 000000000000..3d11eecd2652 --- /dev/null +++ b/2.patch @@ -0,0 +1,49 @@ +--- tc-play-1.1/CMakeLists.txt.orig 2013-12-12 22:55:24.788832261 +0100 ++++ tc-play-1.1/CMakeLists.txt 2013-12-12 22:56:16.099181617 +0100 +@@ -63,20 +63,6 @@ + endif() + + +-if (NOT LIB_SUFFIX) +- message(STATUS "") +- message(STATUS "LIB_SUFFIX variable is not defined. It will be autodetected now.") +- message(STATUS "You can set it manually with -DLIB_SUFFIX=<value> (e.g. 64).") +- if (CMAKE_SIZEOF_VOID_P EQUAL 8) +- message(STATUS "\nSetting LIB_SUFFIX=64\n") +- set (LIB_SUFFIX "64") +- else() +- message(STATUS "\nSetting LIB_SUFFIX=\n") +- set (LIB_SUFFIX "") +- endif() +-endif() +- +- + + add_executable(tcplay-bin main.c ${SRCS_COMMON} ${SRCS_LINUX} ${SRCS_PBKDF}) + set_target_properties(tcplay-bin PROPERTIES OUTPUT_NAME tcplay) +@@ -102,7 +88,7 @@ + # Generate pkg-config file tcplay.pc + file(WRITE ${PROJECT_BINARY_DIR}/tcplay.pc "prefix=${CMAKE_INSTALL_PREFIX} + exec_prefix=${CMAKE_INSTALL_PREFIX} +-libdir=${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX} ++libdir=${CMAKE_INSTALL_PREFIX}/lib + includedir=${CMAKE_INSTALL_PREFIX}/include + + Name: libtcplay +@@ -117,12 +103,12 @@ + + # Installation targets + install(TARGETS tcplay-bin tcplay-static tcplay-so +- RUNTIME DESTINATION sbin COMPONENT bin +- LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT lib +- ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT lib-dev ++ RUNTIME DESTINATION bin COMPONENT bin ++ LIBRARY DESTINATION lib COMPONENT lib ++ ARCHIVE DESTINATION lib COMPONENT lib-dev + ) + +-install(FILES ${PROJECT_BINARY_DIR}/tcplay.pc DESTINATION lib${LIB_SUFFIX}/pkgconfig COMPONENT lib-dev) ++install(FILES ${PROJECT_BINARY_DIR}/tcplay.pc DESTINATION lib/pkgconfig COMPONENT lib-dev) + + install(FILES tcplay_api.h DESTINATION include COMPONENT lib-dev) + install(FILES tcplay.3 DESTINATION share/man/man3 COMPONENT lib-dev)
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..90c78aa20af2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +pkgname=tcplay-veracrypt +pkgver=2.0 +pkgrel=1 +pkgdesc="Free and simple TrueCrypt implementation based on dm-crypt." +arch=('i686' 'x86_64') +url="https://github.com/veracrypt/tc-play" +license=('BSD-2-Clause') +depends=('device-mapper') +makedepends=('cmake') +provides=('tcplay') +conflicts=('tcplay') +replaces=('tcplay') +source=("git+https://github.com/veracrypt/tc-play.git") + +sha256sums=('SKIP') + +prepare() { + cd "tc-play" + patch -Np1 -i ../../1.patch + patch -Np1 -i ../../2.patch +} + +build() { + cd "tc-play" + mkdir -p objdir + cd objdir + cmake -DCMAKE_INSTALL_PREFIX=/usr .. +} + +package() { + cd "tc-play/objdir" + make DESTDIR="$pkgdir" install + install -D -m644 ../LICENSE "$pkgdir"/usr/share/licenses/tcplay/LICENSE +}
\ No newline at end of file |