Skip to content

Instantly share code, notes, and snippets.

@envolution
Last active October 1, 2025 22:32
Show Gist options
  • Select an option

  • Save envolution/d1da70fbeca0307f5284857ca82a0644 to your computer and use it in GitHub Desktop.

Select an option

Save envolution/d1da70fbeca0307f5284857ca82a0644 to your computer and use it in GitHub Desktop.
test slade
# Maintainer: envolution
# Contributor: Jan Cholasta <grubber at grubber cz>
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=slade
pkgver=3.2.7
pkgrel=12
pkgdesc='SLADE3 Doom editor'
arch=('i686' 'x86_64')
url='http://slade.mancubus.net/'
license=('GPL-2.0-only')
depends=(
'bzip2'
'fluidsynth'
'libwebp'
'ftgl'
'glu'
'gtk3'
'libgl'
'lua'
'mpg123'
'sfml2'
'webkit2gtk-4.1'
'wxwidgets-gtk3'
'zlib'
'sdl2-compat'
'pcre2'
'curl'
'expat'
'libsecret'
'gspell'
'xz')
makedepends=(
'git'
'cmake'
'p7zip')
# pull in commits up to Oct 1 2025 (specific to pkgver 3.2.7)
if [[ $pkgver == 3.2.7 ]]; then
_specify_git="#commit=8ad6609784de6fef6b35f1508b6d5d8a3084aa17"
else
_specify_git="#tag=${pkgver}"
fi
source=("git+https://github.com/sirjuddington/SLADE.git${_specify_git}")
sha256sums=('54fda184733c938bfaa456dc9b1d0e7883a9052dda8c5ae89712cb2efc5dc384')
build() {
cd SLADE
cmake -B build -S . \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_RPATH="/opt/sfml2/lib"
cmake --build build
}
package() {
# Install slade
cd "$srcdir/SLADE/build"
make install DESTDIR="$pkgdir"
# Rename slade executable and create wrapper script
mv "$pkgdir/usr/bin/slade" "$pkgdir/usr/bin/slade3.bin"
cat >"$pkgdir/usr/bin/slade" <<'EOF'
#!/bin/sh
GDK_BACKEND=x11 exec /usr/bin/slade3.bin "$@"
EOF
chmod 755 "$pkgdir/usr/bin/slade"
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment