diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-08 11:28:34 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-08 11:28:34 +0000 |
commit | 24fd814c326e282c4321965c31f341dad77e270d (patch) | |
tree | 033d63b33c21a3209964ab56005bb9bdd523630d /app-crypt/aescrypt/aescrypt-3.14.ebuild | |
parent | 129160ec854dca4c3fedb5bcfbcb56930371da0f (diff) |
gentoo resync : 08.01.2021
Diffstat (limited to 'app-crypt/aescrypt/aescrypt-3.14.ebuild')
-rw-r--r-- | app-crypt/aescrypt/aescrypt-3.14.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/app-crypt/aescrypt/aescrypt-3.14.ebuild b/app-crypt/aescrypt/aescrypt-3.14.ebuild new file mode 100644 index 000000000000..78142e9a9dcb --- /dev/null +++ b/app-crypt/aescrypt/aescrypt-3.14.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs flag-o-matic desktop xdg + +DESCRIPTION="Advanced file encryption using AES" +HOMEPAGE="https://www.aescrypt.com/" +SRC_URI="https://www.aescrypt.com/download/v$(ver_cut 1)/linux/${P}.tgz" +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="static X" +RDEPEND="X? ( + || ( gnome-extra/zenity kde-apps/kdialog ) + dev-lang/perl + ) + " + +PATCHES=( "${FILESDIR}/${P}-iconv.patch" ) + +src_prepare() { + xdg_src_prepare + sed -i \ + -e 's:Icon=/usr/share/aescrypt/SmallLock.png:Icon=SmallLock:' \ + -e 's|Categories=Application;Utility;TextEditor;|Categories=Utility;TextEditor;|' \ + gui/AESCrypt.desktop || die +} + +src_compile() { + if use static; then + append-cflags "-DDISABLE_ICONV" + append-ldflags "-static" + fi + cd src || die + emake \ + CFLAGS="${CFLAGS} -Wall -Wextra -pedantic -std=c99 -D_FILE_OFFSET_BITS=64" \ + LDFLAGS="${LDFLAGS}" \ + CC="$(tc-getCC)" +} + +src_test() { + cd src || die + emake -j1 test \ + CFLAGS="${CFLAGS} -Wall -Wextra -pedantic -std=c99 -D_FILE_OFFSET_BITS=64" \ + LDFLAGS="${LDFLAGS}" \ + CC="$(tc-getCC)" +} + +src_install() { + dobin src/{aescrypt,aescrypt_keygen} + doman man/* + doicon gui/SmallLock.png + domenu gui/AESCrypt.desktop + dobin gui/aescrypt-gui +} + +pkg_postinst() { + xdg_pkg_postinst + if use X; then + einfo 'The .desktop file for aescrypt is only supposed to be used with "Open With"' + einfo 'to encrypt and decrypt files.' + einfo 'See:' + einfo ' https://www.aescrypt.com/linux_aes_crypt.html' + einfo 'for more information' + fi +} |