You are not logged in.

#1 2022-01-13 10:43:53

denizdifiesso
Member
Registered: 2021-07-29
Posts: 3

veracrypt-trans PKGBUILD Fixed and Working by me! :-)

Hi guys, i've looked into the package veracrypt-trans and i've noted that is bugged asf, for this reason i've decided to build myself an updated and working PKGBUILD with VeraCrypt + The Language Pack of your Country.


# VeraCryp 1.25.7 PKGBUILD fixed by denizdifiesso aka Denis Sossich
pkgname="veracrypt-trans-fixed"

pkgrel=1

pkgver=1.25.7

pkgdesc="Translated version of VeraCrypt, a Software for Data Security, Privacy and Anti-Forensics measures."

arch=('any')

depends=('device-mapper' 'libsm' 'fuse2' 'wxgtk3' 'coreutils' 'git' 'libxml2' 'yasm' 'sudo')

optdepends=('shred: File Shredder Military Grade'
        'secure-delete: Secure file, disk, swap, memory erasure utilities.'
        'bleachbit: CCleaner Alternative for Linux')
makedepends=(git)

conflicts=('veracrypt' 'veracrypt-hook-nonroot' 'veracrypt-hook' 'veracrypt-git-no-gost')

#source=("https://github.com/veracrypt/VeraCrypt/archive/refs/tags/VeraCrypt_1.25.7.zip")


build() {
  git clone https://github.com/veracrypt/VeraCrypt
  curl -O "https://gitlab.com/crimsonote/veracrypt … ns-edit.sh"
  mv trans-edit.sh VeraCrypt/


}
package() {
  sudo bash VeraCrypt/trans-edit.sh && cd VeraCrypt/src/ && make -j400 && sudo make install

  echo "Installation finished!"
}⏎

It's a beta version, if anyone have some suggestion about beautify the PKGBUILD please reply to my thread and i'm happy to collaborate with it. smile

Offline

#2 2022-01-13 12:55:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 16,202

Re: veracrypt-trans PKGBUILD Fixed and Working by me! :-)

Please use [ code ] rather than [ quote ] for outputs

That PKGBUILD basically goes against every principle of a proper PKGBUILD. There's no need for sudo, and you need to install things into the appropriate $pkgdir rather than system wide out right, you PKGBUILD manipulates the system outside of the packaging system and creates an empty package. You "think" you did it correctly because the files are at the "correct" location but if you were to upload this package it would not contain any files.

You abuse the install section for preparation, building and installing all in one go while ignoring that the amount of jobs is something the user would configure.

I strongly suggest you read https://wiki.archlinux.org/title/Creating_packages and modify the PKGBUILD accordingly

It's also stating a version but does not actually install that version but grabs a git commit, which would make this a VCS package

There's also no need for the manual git clone or the manual curl, https://wiki.archlinux.org/title/PKGBUILD#Sources (in general you should read more of that page as well)


Moving to AUR issues

Last edited by V1del (2022-01-13 13:05:49)

Offline

Board footer

Powered by FluxBB