summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05c0dd7461edf1de451c4a0aeda52bb964d61615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: crimsonote <crimsonote@outlook.com>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>
# Contributor: Sebastian Lau <archlinux _at_ slau _dot_ info>
# Contributor: Eric Ozwigh <ozwigh at gmail dot com>
pkgname=veracrypt-trans
_pkgname=VeraCrypt
pkgver=1.24_Update7
pkgrel=1
pkgdesc='Disk encryption with strong security based on TrueCrypt.Translate the interface to other languages. (The language cannot be changed after compilation)'
url='https://www.veracrypt.fr/'
arch=('i686' 'x86_64')
license=('custom:TrueCrypt')
depends=('fuse2>=2.8.0' 'wxgtk3>=3.0' 'libsm' 'device-mapper')
optdepends=('sudo: mounting encrypted volumes as nonroot users')
makedepends=('git' 'yasm' 'libxml2' 'coreutils' )
source=("${_pkgname}_${pkgver//_/-}.tar.gz::https://github.com/veracrypt/VeraCrypt/archive/${_pkgname}_${pkgver//_/-}.tar.gz"
	"no-makeself.patch::https://gitlab.com/crimsonote/veracrypt-trans/-/raw/master/no-makeself.patch"
        "veracrypt.desktop::https://gitlab.com/crimsonote/veracrypt-trans/-/raw/master/veracrypt.desktop"
	"trans-edit.sh::https://gitlab.com/crimsonote/veracrypt-trans/-/raw/128e174fc3e2d64eeabdd11fa91484c2c1e045cf/trans-edit.sh")
sha512sums=('d149736d4d6740a89bfce892f44757600c6411776b471a208a75b4573bbc6125535ef1b68c2f55903ff82f4d0fff13b8b07d3cf15c7a301c39158aefffc29e17'
            '40c269859bb97fbcceb443e5f457788bac650271ed118ec79d34f56fc340ad6e613114fe905ec5aba8c4d171c51c9a6865f97e9fa1ba01fa98ef18be4e97bbe1'
            'f689ca64bac7042030de7714aed8cc89f2c5f87b407444b1b121491c1d89c147babaaa454ddc2a93b70ae20d4da59f96ad64f01b04bea9017d658c377faeb75d'
	    '5dc24362d3089ca2855b8da73db24212e8fd36adb6357dfff0054c6b56ef4250821e69d6b3d8438afb2fc41061fb1c1c7654983149ba909f7c1b0e8eac68d44e')
provides=('veracrypt')
conflicts=('veracrypt' 'veracrypt-git')

#pkgver() {
#  cd $srcdir/${_pkgname}-${_pkgname}_${pkgver//_/-}
#  git log -1 --format="%cd" --date=short --no-show-signature | tr -d '-'
#}

prepare() {
    #cd $srcdir/${pkgname%-trans}/src
    cd $srcdir/${_pkgname}-${_pkgname}_${pkgver//_/-}
    cp $srcdir/../Translations/attach-language.*.xml Translations/ 2>&1||echo -n ""
    bash $srcdir/../trans-edit.sh true
    
    cd $srcdir/${_pkgname}-${_pkgname}_${pkgver//_/-}/src
    chmod -R u+w . # WAT award
    patch -Np1 < "${srcdir}/no-makeself.patch"
}

build() {
    #  cd $srcdir/${pkgname%-trans}
    cd $srcdir/${_pkgname}-${_pkgname}_${pkgver//_/-}/src
    make PKG_CONFIG_PATH=/usr/lib/pkgconfig \
	 WX_CONFIG=/usr/bin/wx-config-gtk3 \
	 TC_EXTRA_LFLAGS+="-ldl ${LDFLAGS}" \
	 TC_EXTRA_CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" \
	 TC_EXTRA_CFLAGS="${CFLAGS} ${CPPFLAGS}"
}

package() {
    #  cd $srcdir/${pkgname%-trans}/src
    cd $srcdir/${_pkgname}-${_pkgname}_${pkgver//_/-}/src
    pwd
    install -Dm 755 Main/${pkgname%-trans} "${pkgdir}/usr/bin/${pkgname%-trans}"
    install -Dm 644 "${srcdir}/veracrypt.desktop" -t "${pkgdir}/usr/share/applications"
    install -Dm 644 Resources/Icons/VeraCrypt-256x256.xpm "${pkgdir}/usr/share/pixmaps/veracrypt.xpm"
    install -Dm 644 License.txt -t "${pkgdir}/usr/share/licenses/${pkgname%-trans}"
}