[PKGBUILD] Switch from md5 to sha512 checksum, code cleanup
All checks were successful
continuous-integration/drone/push Build is passing

Remove comment out line of code

Replace tabs with spaces (yes I’m this kind of guy)
Fix indentation
This commit is contained in:
Lucien Cartier-Tilet 2021-11-25 00:53:56 +01:00
parent afa83c5e05
commit 81c9cdab7e
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
5 changed files with 73 additions and 79 deletions

View File

@ -23,7 +23,6 @@ sha512sums=('27b0a56c95efe99c2b3cadb10c4e70186591bef0793d58b1acff99f8dfc789806ae
noextract=()
package() {
# unzip "${srcdir}/${pkgname}-${pkgver}-Linux64.zip" -d "${srcdir}/${pkgname}/"
mkdir -p "${pkgdir}/usr/share/applications/"
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"

View File

@ -75,8 +75,8 @@ replaces=('emacs' 'emacs26-git' 'emacs27-git' 'emacs28-git' 'emacs-seq' 'emacs-n
# If Savannah fails for reasons, use Github's mirror
source=("emacs-git::git://github.com/emacs-mirror/emacs.git#branch=emacs-28"
"https://raw.githubusercontent.com/TheVaffel/emacs/master/emacs_background_transparency.patch")
md5sums=('SKIP'
'4a48652df63bbd4039d164e843323f27')
sha512sums=('SKIP'
'd45043e6925358a41fbe42457de3233cd346a7e6133704426240a0c987587328ae08719413188b11db498f27794ee55662c20e8c4b58311bb806ad71e4798574')
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug)
################################################################################
@ -112,7 +112,7 @@ if [[ $LTO == "YES" ]]; then
if [[ $CLANG != "YES" ]]; then
CFLAGS+=" -flto -fuse-linker-plugin"
CXXFLAGS+=" -flto -fuse-linker-plugin"
else
else
CFLAGS+=" -flto"
CXXFLAGS+=" -flto"
fi
@ -211,66 +211,66 @@ build() {
--with-sound=alsa
--with-modules
--with-json
# Beware https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25228
# dconf and gconf break font settings you set in ~/.emacs.
# If you insist you'll need to read that bug report in *full*.
# Good luck!
# Beware https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25228
# dconf and gconf break font settings you set in ~/.emacs.
# If you insist you'll need to read that bug report in *full*.
# Good luck!
--without-gconf
--without-gsettings
)
################################################################################
################################################################################
################################################################################
################################################################################
if [[ $CLANG == "YES" ]]; then
if [[ $CLANG == "YES" ]]; then
_conf+=( '--enable-autodepend' );
fi
fi
if [[ $LTO == "YES" ]]; then
if [[ $LTO == "YES" ]]; then
_conf+=( '--enable-link-time-optimization' );
fi
fi
if [[ $JIT == "YES" ]]; then
if [[ $JIT == "YES" ]]; then
_conf+=( '--with-native-compilation' );
fi
fi
if [[ $CLI == "YES" ]]; then
if [[ $CLI == "YES" ]]; then
_conf+=( '--without-x' '--with-x-toolkit=no' '--without-xft' '--without-lcms2' '--without-rsvg' '--without-jpeg' '--without-gif' '--without-tiff' '--without-png' );
elif [[ $NOTKIT == "YES" ]]; then
elif [[ $NOTKIT == "YES" ]]; then
_conf+=( '--with-x-toolkit=no' '--without-toolkit-scroll-bars' '--with-xft' '--without-xaw3d' );
elif [[ $LUCID == "YES" ]]; then
elif [[ $LUCID == "YES" ]]; then
_conf+=( '--with-x-toolkit=lucid' '--with-xft' '--with-xaw3d' );
elif [[ $GTK2 == "YES" ]]; then
elif [[ $GTK2 == "YES" ]]; then
_conf+=( '--with-x-toolkit=gtk2' '--without-gsettings' '--without-xaw3d' );
else
else
_conf+=( '--with-x-toolkit=gtk3' '--without-xaw3d' );
fi
fi
if [[ $MAGICK == "YES" ]]; then
if [[ $MAGICK == "YES" ]]; then
_conf+=( '--with-imagemagick');
else
else
_conf+=();
fi
fi
if [[ $NOCAIRO == "YES" || $CLI == "YES" ]]; then
if [[ $NOCAIRO == "YES" || $CLI == "YES" ]]; then
_conf+=( '--without-cairo' );
fi
fi
if [[ $XWIDGETS == "YES" ]]; then
if [[ $XWIDGETS == "YES" ]]; then
_conf+=( '--with-xwidgets' );
fi
fi
if [[ $NOGZ == "YES" ]]; then
if [[ $NOGZ == "YES" ]]; then
_conf+=( '--without-compress-install' );
fi
fi
# ctags/etags may be provided by other packages, e.g, universal-ctags
_conf+=('--program-transform-name=s/\([ec]tags\)/\1.emacs/')
# ctags/etags may be provided by other packages, e.g, universal-ctags
_conf+=('--program-transform-name=s/\([ec]tags\)/\1.emacs/')
################################################################################
################################################################################
################################################################################
################################################################################
./configure "${_conf[@]}"

View File

@ -10,7 +10,7 @@ depends=()
makedepends=('rustup' 'git')
options=('strip' 'zipman')
source=("$pkgname::git+https://labs.phundrak.com/phundrak/pumopm.git#branch=develop")
md5sums=('SKIP')
sha512sums=('SKIP')
conflicts=('pumopm' 'pumopm-bin')
# If Phundraks Gitea takes too long to answer, or if it is down, use the
# Github mirror

View File

@ -14,8 +14,6 @@ makedepends=('git')
conflicts=('sent' 'sent-git')
source=("$pkgname::git+https://labs.phundrak.com/phundrak/sent")
sha256sums=('SKIP')
# "config.h")
# 'SKIP')
pkgver() {
cd "${pkgname}"

View File

@ -16,8 +16,8 @@ makedepends=('git')
provides=("${_name}")
conflicts=("${_name}" "${_name}-git")
source=("${_name}::git+${url}.git" config.h)
md5sums=('SKIP'
'0a944f532b962cac835ee65d616be61b')
sha512sums=('SKIP'
'f3cd5532977033ffb878e397c76b4576f931b74dc2c158f373d6618d0d4155387bc983b745f0adeffeee85de9ebdc9e9418d823cceef8895b2d8e6ab1d4791ca')
pkgver() {
@ -26,10 +26,7 @@ pkgver() {
}
prepare() {
# echo =====================
# echo srcdir $srcdir
cd "${srcdir}/${_name}"
# use your customisations if present
[[ -f $srcdir/config.h ]] && cp $srcdir/config.h .
# Allow custom FLAGS