gtk/veracrypt/PKGBUILD
2018-10-03 15:22:32 +02:00

40 lines
1.4 KiB
Bash

pkgname=veracrypt
pkgver=1.23
pkgrel=1
pkgdesc="Free disk encryption software, TrueCrypt fork."
arch=('x86_64')
url='https://www.veracrypt.fr'
license=('custom')
depends=('fuse' 'wxgtk' 'libsm' 'device-mapper')
makedepends=('yasm')
replaces=('truecrypt')
install='veracrypt.install'
source=("https://github.com/veracrypt/VeraCrypt/archive/VeraCrypt_${pkgver}.tar.gz"
'no_makeself.patch')
sha256sums=('a97e7a18d98ad08530b6b2deca8ab1b064ac9baf8f0bb51908c09cf5229b142a'
'76c78498703d806d80707e65b253c2f2fa7f328fdae29efdca64b6d4a0ef2816')
prepare() {
cd ${srcdir}/VeraCrypt-VeraCrypt_${pkgver}/src
# apply patch(es)
patch -Np1 -i ../../no_makeself.patch # disable sfx https://github.com/veracrypt/VeraCryptarchive
}
build() {
cd ${srcdir}/VeraCrypt-VeraCrypt_${pkgver}/src
# build
make PKG_CONFIG_PATH=/usr/lib/pkgconfig \
WX_CONFIG=/usr/bin/wx-config \
TC_EXTRA_LFLAGS+="-ldl ${LDFLAGS}" \
TC_EXTRA_CXXFLAGS="${CXXFLAGS}" \
TC_EXTRA_CFLAGS="${CFLAGS}"
}
package() {
cd ${srcdir}/VeraCrypt-VeraCrypt_${pkgver}/src
install -D -m755 Main/${pkgname} "${pkgdir}/usr/bin/${pkgname}"
install -D -m644 "Setup/Linux/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -D -m644 Resources/Icons/VeraCrypt-256x256.xpm "${pkgdir}/usr/share/pixmaps/veracrypt.xpm"
install -D -m644 "License.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}