Browse Source

Tons of changes

Maintaining this large an amount of satellites is hard. Moved most of them to the graveyard until I need them again, in which case I'll just move them back.
master
mid-kid 8 years ago
parent
commit
740762e43d
  1. 37
      astronaut/astronaut
  2. 29
      astronaut/astronaut.sat
  3. 2
      astronaut/examples/functions/say_hello.sh
  4. 31
      astronaut/examples/hello.sat
  5. 6
      astronaut/template.sat
  6. 3
      graveyard/unmaintained_satellites/3dsfat16tool.sat
  7. 0
      graveyard/unmaintained_satellites/bin/ctrulib.sat
  8. 0
      graveyard/unmaintained_satellites/bin/default_arm7.sat
  9. 0
      graveyard/unmaintained_satellites/bin/devkitarm.sat
  10. 0
      graveyard/unmaintained_satellites/bin/extrafiles/devkitarm/devkitarm.sh
  11. 0
      graveyard/unmaintained_satellites/bin/extrafiles/palemoon/palemoon.desktop
  12. 0
      graveyard/unmaintained_satellites/bin/libfat-nds.sat
  13. 0
      graveyard/unmaintained_satellites/bin/libnds.sat
  14. 0
      graveyard/unmaintained_satellites/bin/palemoon.sat
  15. 0
      graveyard/unmaintained_satellites/bin/unetbootin.sat
  16. 21
      graveyard/unmaintained_satellites/broadcom-wl.sat
  17. 2
      graveyard/unmaintained_satellites/ctrtool.sat
  18. 4
      graveyard/unmaintained_satellites/heimdall.sat
  19. 4
      graveyard/unmaintained_satellites/include-what-you-use.sat
  20. 0
      graveyard/unmaintained_satellites/libconfig.sat
  21. 0
      graveyard/unmaintained_satellites/makerom.sat
  22. 0
      graveyard/unmaintained_satellites/markdown.sat
  23. 0
      graveyard/unmaintained_satellites/minitube.sat
  24. 0
      graveyard/unmaintained_satellites/padxorer.sat
  25. 0
      graveyard/unmaintained_satellites/pdnsd.sat
  26. 0
      graveyard/unmaintained_satellites/python3.5-crc16.sat
  27. 0
      graveyard/unmaintained_satellites/python3.5-websocket-client.sat
  28. 0
      graveyard/unmaintained_satellites/pyyaml.sat
  29. 0
      graveyard/unmaintained_satellites/qwbfsmanager.sat
  30. 0
      graveyard/unmaintained_satellites/rxvt-unicode.sat
  31. 0
      graveyard/unmaintained_satellites/speedtest-cli.sat
  32. 0
      graveyard/unmaintained_satellites/vcs/armips.sat
  33. 0
      graveyard/unmaintained_satellites/vcs/bannertool.sat
  34. 0
      graveyard/unmaintained_satellites/vcs/compton.sat
  35. 0
      graveyard/unmaintained_satellites/vcs/ctr.sat
  36. 0
      graveyard/unmaintained_satellites/vcs/ctrff.sat
  37. 0
      graveyard/unmaintained_satellites/vcs/ctrtool-git.sat
  38. 0
      graveyard/unmaintained_satellites/vcs/ctrulib-git.sat
  39. 0
      graveyard/unmaintained_satellites/vcs/makerom-git.sat
  40. 0
      graveyard/unmaintained_satellites/vcs/radare2-git.sat
  41. 0
      graveyard/unmaintained_satellites/vcs/sockfile.sat
  42. 0
      graveyard/unmaintained_satellites/vcs/spasm-ng-git.sat
  43. 0
      graveyard/unmaintained_satellites/webfs.sat
  44. 20
      satellites/fakeroot.sat
  45. 18
      satellites/functions/compile/configure.sh
  46. 15
      satellites/functions/compile/qt5source.sh
  47. 14
      satellites/libxkbcommon.sat
  48. 2
      satellites/lua.sat
  49. 21
      satellites/nxengine.sat
  50. 42
      satellites/qt5-base.sat
  51. 1
      satellites/vcs/functions
  52. 9
      satellites/volumeicon.sat

37
astronaut/astronaut

@ -63,6 +63,7 @@ _download_only=false
_vcs_only=false
vcs_compile=false
unset _user_options # Options specified in the command line get the highest priority
unset _sat_options # Options defined by the satellite
#_nuke_dir_install (This can be set from wrappers)
# Should be specified in the satellite
@ -211,10 +212,9 @@ option() {
local negate=false
local variable=false
case "$check" in
*=*)
=*)
local variable=true
local default="$(echo "$check" | cut -d '=' -f 2)"
local check="$(echo "$check" | cut -d '=' -f 1)"
local check="$(echo "$check" | cut -c 2-)"
;;
!*)
local negate=true
@ -223,34 +223,44 @@ option() {
esac
local enabled=false
local found=false
local opt
local IFS=','
for option in $options; do
local option_negate=false
local option_variable=false
case "$option" in
*=*)
local value="$(echo "$option" | cut -d '=' -f 2)"
local option="$(echo "$option" | cut -d '=' -f 1)"
local option_variable=true
;;
!*)
local option="$(echo "$option" | cut -c 2-)"
local option_negate=true
;;
esac
if [ "$option" = "$check" ]; then
if [ "$variable" = true -a "$option_variable" = false ]; then
_msg 'Tip: Define the option as option=value.'
_exiterr "Satellite requested a variable option, but there was no value for option: '$option'."
fi
[ "$option_negate" = true ] && local enabled=false || local enabled=true
local found=true
break
fi
done
if [ "$found" = false ]; then
_msg 'Tip: Make sure to define every option you use in the satellite.'
_exiterr "Option '$check' was nowhere to be found."
fi
if [ "$variable" = true ]; then
if [ "$enabled" = true ]; then
echo "$value"
return
else
echo "$default"
return
fi
echo "$value"
return
fi
if [ "$negate" = true ]; then
@ -267,6 +277,11 @@ option() {
fi
}
define_option() {
local option="$(echo "$1" | cut -d ':' -f 1)"
options="$options,$option"
}
import() {
. "$(dirname "$_satellite")/functions/$1.sh"
}
@ -311,7 +326,7 @@ fi
_satellite="$(realpath "$_satellite")"
# Build the definitive options list
# Build the definitive options list (not including the options defined in the satellite)
options="$_user_options$(package_options "$_satname"),$options"
# Create the directories

29
astronaut/astronaut.sat

@ -1,29 +1,34 @@
name=astronaut
version=$(date +%Y%m%d)
extrafile "astronaut"
define_option '!helpers: Enable installation of helper scripts'
define_option '!xbps: Enable installation of the xbps-astronaut wrapper'
define_option '!pacman: Enable installation of the pacman-astronaut wrapper'
define_option '!pkgtools: Enable installation of the astronautpkg wrapper'
extrafile 'astronaut'
if option helpers; then
extrafile "astrohelp"
extrafile "freshnaut"
extrafile 'astrohelp'
extrafile 'freshnaut'
fi
option xbps extrafile "xbps-astronaut"
option pacman extrafile "pacman-astronaut"
option pkgtools extrafile "astronautpkg"
option xbps extrafile 'xbps-astronaut'
option pacman extrafile 'pacman-astronaut'
option pkgtools extrafile 'astronautpkg'
header_end
install -D "astronaut" "$dir_install/$dir_prefix/bin/astronaut"
install -D 'astronaut' "$dir_install/$dir_prefix/bin/astronaut"
# Optional helper tools
if option helpers; then
install -D "astrohelp" "$dir_install/$dir_prefix/bin/astrohelp"
install -D "freshnaut" "$dir_install/$dir_prefix/bin/freshnaut"
install -D 'astrohelp' "$dir_install/$dir_prefix/bin/astrohelp"
install -D 'freshnaut' "$dir_install/$dir_prefix/bin/freshnaut"
fi
# Wrappers for specific package managers
option xbps install -D "xbps-astronaut" "$dir_install/$dir_prefix/bin/xbps-astronaut"
option pacman install -D "pacman-astronaut" "$dir_install/$dir_prefix/bin/pacman-astronaut"
option pkgtools install -D "astronautpkg" "$dir_install/$dir_prefix/bin/astronautpkg"
option xbps install -D 'xbps-astronaut' "$dir_install/$dir_prefix/bin/xbps-astronaut"
option pacman install -D 'pacman-astronaut' "$dir_install/$dir_prefix/bin/pacman-astronaut"
option pkgtools install -D 'astronautpkg' "$dir_install/$dir_prefix/bin/astronautpkg"
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

2
astronaut/examples/functions/say_hello.sh

@ -2,6 +2,6 @@
# You define a function here, and it becomes available in any script that imports it.
say_hello() {
local tmp="Hello, there!"
local tmp='Hello, there!'
echo "Function ran! $tmp"
}

31
astronaut/examples/hello.sat

@ -16,9 +16,15 @@ update_names="$name-$version.tar.gz" # Specify what the lines containing the ve
# as another program will look for any different versions on the same page.
# You may not need to set this, in which case the program will try to guess it from the download commands.
vcs_compile=true # Set this to true if it's a vcs package, and we've just downloaded an update for it. This is meant to be used in functions/header_end hooks, and has to be set before header_end is called (or by a header_end hook).
vcs_compile=true # Set this to true if it's a vcs package, and we've just downloaded an update for it. This is meant to be used in functions, and has to be set before header_end is called.
# Please note that setting the above info from an imported script is supported, as long as it's done in the header.
# Define options used in this satellite.
define_option '!check: Enable the testsuite.' # Due to the '!' at the start, check is false by default.
define_option 'test=Default value' # It is also allowed to provide no description
# You should define every option used in your satellite.
# See lower for info on how to use these options.
# Please note that setting the above info in an imported script is supported, as long as it's done in the header.
# Astronaut will generally prefix internal variables with "_". There are, however, a few exceptions.
# Some of those you can touch, some not.
@ -61,35 +67,33 @@ header_end # End of the header.
# - dlfile
# - extrafile
# - import
# - define_option
# getfile and extract are technically allowed, but not encouraged.
# Basically, do not use anything that touches dir_build or dir_install or does anything other than fetching the required files.
# The same rule above applies for imported commands.
# Name [REQUIRED], Destination, Custom command
extract "$name-$version.tar.gz" \
"." \
"tar xvfC {src} {dst}"
'.' \
'tar xvfC {src} {dst}'
# Copy some file you downloaded over to the build directory.
#getfile "Waffles.txt"
# Compilation instructions
cd "$name-$version"
./configure --prefix="$dir_prefix"
./configure --prefix="/$dir_prefix"
make
# Know if the user wants the package to be checked
# Check if an option is disabled
if option !no_check; then
if option check; then
make check
fi
# Abbreviation of the above
option test echo "Test option enabled"
#option check make check
# Bangs ("!") negate the operation.
#option !test echo "Test option disabled"
# Options with arguments.
echo "Value of option test2 = $(option "test2=default value")"
#option !check echo "The package wasn't checked"
make DESTDIR="$dir_install" install
rm "$dir_install/$dir_prefix/share/info/dir" # This file collides with some other packages.
@ -97,8 +101,11 @@ rm "$dir_install/$dir_prefix/share/info/dir" # This file collides with some oth
# Call the function we imported. For more info see the top of the file, and functions/say_hello.sh
say_hello
# Options with values.
echo "Value of option test = $(option =test)"
# Misc functions:
#safe_sed 'oh/i/hope\i\canuse%&thisinsed'
# Escapes all the necessary characters to be able to use it in a regular sed command
# Escapes all the necessary characters to be able to use an arbitrary string in a regular sed command
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

6
astronaut/examples/template.sat → astronaut/template.sat

@ -4,15 +4,17 @@ name=hello
version=2.10
update_url="https://ftp.gnu.org/gnu/$name/"
define_option '!check: Enable the testsuite.'
dlextract "https://ftp.gnu.org/gnu/$name/$name-$version.tar.gz" \
"6cd0ffea3884a4e79330338dcc2987d6"
header_end
cd "$name-$version"
./configure --prefix="$dir_prefix"
./configure --prefix="/$dir_prefix"
make
option !no_check make check
option check make check
make DESTDIR="$dir_install" install
rm -f "$dir_install/$dir_prefix/share/info/dir" # This file collides with some other packages.

3
satellites/3dsfat16tool.sat → graveyard/unmaintained_satellites/3dsfat16tool.sat

@ -3,7 +3,8 @@ version=3.2
update_url="https://github.com/d0k3/$name/releases"
update_names="v$version.tar.gz"
dlextract "https://github.com/d0k3/$name/archive/v$version.tar.gz"
dlextract "https://github.com/d0k3/$name/archive/v$version.tar.gz" \
'c4a2a0d4e8eed7b882ea090ccdb2e929'
header_end
cd "$name-$version"

0
satellites/bin/ctrulib.sat → graveyard/unmaintained_satellites/bin/ctrulib.sat

0
satellites/bin/default_arm7.sat → graveyard/unmaintained_satellites/bin/default_arm7.sat

0
satellites/bin/devkitarm.sat → graveyard/unmaintained_satellites/bin/devkitarm.sat

0
satellites/bin/extrafiles/devkitarm/devkitarm.sh → graveyard/unmaintained_satellites/bin/extrafiles/devkitarm/devkitarm.sh

0
satellites/bin/extrafiles/palemoon/palemoon.desktop → graveyard/unmaintained_satellites/bin/extrafiles/palemoon/palemoon.desktop

0
satellites/bin/libfat-nds.sat → graveyard/unmaintained_satellites/bin/libfat-nds.sat

0
satellites/bin/libnds.sat → graveyard/unmaintained_satellites/bin/libnds.sat

0
satellites/bin/palemoon.sat → graveyard/unmaintained_satellites/bin/palemoon.sat

0
satellites/bin/unetbootin.sat → graveyard/unmaintained_satellites/bin/unetbootin.sat

21
satellites/broadcom-wl.sat → graveyard/unmaintained_satellites/broadcom-wl.sat

@ -2,21 +2,28 @@ name=broadcom-wl
version=6_30_223_271
update_url="https://aur.archlinux.org/packages/$name-dkms/"
define_option "kver=$(uname -r): The kernel version we're building for."
dlextract "http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-$version.tar.gz" \
"115903050c41d466161784d4c843f4f9"
'115903050c41d466161784d4c843f4f9'
dlfile "https://aur.archlinux.org/cgit/aur.git/plain/$name-dkms.conf?h=$name-dkms" \
"b6e8ae4cf217bf68dcf08599bf43fce4"
'b6e8ae4cf217bf68dcf08599bf43fce4'
dlfile "https://aur.archlinux.org/cgit/aur.git/plain/001-null-pointer-fix.patch?h=$name-dkms" \
"fabbf528164f5e3a9dcf46f46a678f86"
'fabbf528164f5e3a9dcf46f46a678f86'
dlfile "https://aur.archlinux.org/cgit/aur.git/plain/002-rdtscl.patch?h=$name-dkms" \
"76c168a0271cb57d2539a10877979fbd"
'76c168a0271cb57d2539a10877979fbd'
dlfile "https://aur.archlinux.org/cgit/aur.git/plain/003-linux47.patch?h=$name-dkms" \
'c5074307a37698b11780237beb8f52b2'
header_end
sed -i -e "/BRCM_WLAN_IFNAME/s:eth:wlan:" src/wl/sys/wl_linux.c
kver="$(option =kver)"
sed -i -e '/BRCM_WLAN_IFNAME/s:eth:wlan:' src/wl/sys/wl_linux.c
patch -p1 -i 001-null-pointer-fix.patch
patch -p1 -i 002-rdtscl.patch
make KBUILD_DIR="$dir_sysroot/lib/modules/$(uname -r)/build"
install -Dm 644 "wl.ko" "$dir_install/lib/modules/$(uname -r)/kernel/drivers/net/wireless/wl.ko"
patch -p1 -i 003-linux47.patch
make KBUILD_DIR="$dir_sysroot/lib/modules/$kver/build"
install -Dm 644 "wl.ko" "$dir_install/lib/modules/$kver/kernel/drivers/net/wireless/wl.ko"
install -Dm 644 "$name-dkms.conf" "$dir_install/etc/modprobe.d/$name.conf"
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

2
satellites/ctrtool.sat → graveyard/unmaintained_satellites/ctrtool.sat

@ -4,7 +4,7 @@ update_url="https://github.com/profi200/$name/releases"
update_names="archive/$version.tar.gz"
dlextract "https://github.com/profi200/$name/archive/$version.tar.gz" \
"ff68864fade3dd822850180076a08357"
'ff68864fade3dd822850180076a08357'
header_end
cd "$name-$version/ctrtool"

4
satellites/heimdall.sat → graveyard/unmaintained_satellites/heimdall.sat

@ -1,11 +1,11 @@
import "compile/configure"
import 'compile/configure'
name=Heimdall
version=1.4.1
update_url="https://github.com/Benjamin-Dobell/$name/releases"
dlextract "https://github.com/Benjamin-Dobell/$name/archive/v$version.tar.gz" \
"22c911e9042f5ed8fd90cbeeb9589015"
'22c911e9042f5ed8fd90cbeeb9589015'
header_end
cd "$name-$version/libpit"

4
satellites/include-what-you-use.sat → graveyard/unmaintained_satellites/include-what-you-use.sat

@ -1,11 +1,11 @@
import "compile/cmake"
import 'compile/cmake'
name=include-what-you-use
version=0.6
update_url="http://include-what-you-use.org/downloads/"
dlextract "http://include-what-you-use.org/downloads/$name-$version.src.tar.gz" \
"e4dffc7c2396f0e3f2b7499c077325b5"
'e4dffc7c2396f0e3f2b7499c077325b5'
header_end
cd "$name"

0
satellites/libconfig.sat → graveyard/unmaintained_satellites/libconfig.sat

0
satellites/makerom.sat → graveyard/unmaintained_satellites/makerom.sat

0
satellites/markdown.sat → graveyard/unmaintained_satellites/markdown.sat

0
satellites/minitube.sat → graveyard/unmaintained_satellites/minitube.sat

0
satellites/padxorer.sat → graveyard/unmaintained_satellites/padxorer.sat

0
satellites/pdnsd.sat → graveyard/unmaintained_satellites/pdnsd.sat

0
satellites/python3.5-crc16.sat → graveyard/unmaintained_satellites/python3.5-crc16.sat

0
satellites/python3.5-websocket-client.sat → graveyard/unmaintained_satellites/python3.5-websocket-client.sat

0
satellites/pyyaml.sat → graveyard/unmaintained_satellites/pyyaml.sat

0
satellites/qwbfsmanager.sat → graveyard/unmaintained_satellites/qwbfsmanager.sat

0
satellites/rxvt-unicode.sat → graveyard/unmaintained_satellites/rxvt-unicode.sat

0
satellites/speedtest-cli.sat → graveyard/unmaintained_satellites/speedtest-cli.sat

0
satellites/vcs/armips.sat → graveyard/unmaintained_satellites/vcs/armips.sat

0
satellites/vcs/bannertool.sat → graveyard/unmaintained_satellites/vcs/bannertool.sat

0
satellites/vcs/compton.sat → graveyard/unmaintained_satellites/vcs/compton.sat

0
satellites/vcs/ctr.sat → graveyard/unmaintained_satellites/vcs/ctr.sat

0
satellites/vcs/ctrff.sat → graveyard/unmaintained_satellites/vcs/ctrff.sat

0
satellites/vcs/ctrtool-git.sat → graveyard/unmaintained_satellites/vcs/ctrtool-git.sat

0
satellites/vcs/ctrulib-git.sat → graveyard/unmaintained_satellites/vcs/ctrulib-git.sat

0
satellites/vcs/makerom-git.sat → graveyard/unmaintained_satellites/vcs/makerom-git.sat

0
satellites/vcs/radare2-git.sat → graveyard/unmaintained_satellites/vcs/radare2-git.sat

0
satellites/vcs/sockfile.sat → graveyard/unmaintained_satellites/vcs/sockfile.sat

0
satellites/vcs/spasm-ng-git.sat → graveyard/unmaintained_satellites/vcs/spasm-ng-git.sat

0
satellites/webfs.sat → graveyard/unmaintained_satellites/webfs.sat

20
satellites/fakeroot.sat

@ -1,20 +1,18 @@
import "compile/configure"
# TODO: Can't get 1.21 to install properly
import 'compile/configure'
name=fakeroot
#version=1.21
version=1.20.2
version=1.21
update_url="http://http.debian.net/debian/pool/main/f/$name/"
#dlextract "http://http.debian.net/debian/pool/main/f/$name/${name}_$version.orig.tar.gz" \
#"be5c9a0e516869fca4a6758105968e5a"
dlextract "http://http.debian.net/debian/pool/main/f/$name/${name}_$version.orig.tar.bz2" \
"a4b4564a75024aa96c86e4d1017ac786"
dlextract "http://http.debian.net/debian/pool/main/f/$name/${name}_$version.orig.tar.gz" \
'be5c9a0e516869fca4a6758105968e5a'
header_end
cd "$name-$version"
#./bootstrap
cd "$name-$version/doc"
po4a -k 0 --rm-backups --variable 'srcdir=../doc/' po4a/po4a.cfg
cd ..
./bootstrap
compile_configure --disable-static
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

18
satellites/functions/compile/configure.sh

@ -2,15 +2,15 @@ compile_configure() {
./configure \
--prefix="/$dir_prefix" \
--sysconfdir="/$dir_sysconfdir" \
--bindir="$dir_prefix/$dir_bindir" \
--sbindir="$dir_prefix/$dir_sbindir" \
--libdir="$dir_prefix/$dir_libdir" \
--libexecdir="$dir_prefix/$dir_libexecdir" \
--datadir="$dir_prefix/$dir_datadir" \
--mandir="$dir_prefix/$dir_mandir" \
--docdir="$dir_prefix/$dir_docdir/$name" \
--infodir="$dir_prefix/$dir_infodir" \
--localedir="$dir_prefix/$dir_localedir" \
--bindir="/$dir_prefix/$dir_bindir" \
--sbindir="/$dir_prefix/$dir_sbindir" \
--libdir="/$dir_prefix/$dir_libdir" \
--libexecdir="/$dir_prefix/$dir_libexecdir" \
--datadir="/$dir_prefix/$dir_datadir" \
--mandir="/$dir_prefix/$dir_mandir" \
--docdir="/$dir_prefix/$dir_docdir/$name" \
--infodir="/$dir_prefix/$dir_infodir" \
--localedir="/$dir_prefix/$dir_localedir" \
$@
make
make DESTDIR="$dir_install/" install

15
satellites/functions/compile/qt5source.sh

@ -0,0 +1,15 @@
compile_qt5source() {
./configure -v -confirm-license -opensource \
-prefix "/$dir_prefix" \
-libdir "/$dir_prefix/$dir_libdir" \
-headerdir "/$dir_prefix/include/qt5" \
-sysconfdir "/$dir_sysconfdir/xdg" \
-datadir "/$dir_prefix/$dir_datadir/qt5" \
-bindir "/$dir_prefix/$dir_libdir/qt5/bin" \
-archdatadir "/$dir_prefix/$dir_libdir/qt5" \
-docdir "/$dir_prefix/$dir_docdir/qt5" \
-examplesdir "/$dir_prefix/$dir_docdir/qt5/examples" \
$@
make
make INSTALL_ROOT="$dir_install" install
}

14
satellites/libxkbcommon.sat

@ -0,0 +1,14 @@
import 'compile/configure'
name=libxkbcommon
version=0.6.1
update_url='http://xkbcommon.org/'
dlextract "http://xkbcommon.org/download/$name-$version.tar.xz" \
'67a8f322b5fa32352272e811bb90dd73'
header_end
cd "$name-$version"
compile_configure --disable-static
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

2
satellites/lua.sat

@ -1,3 +1,5 @@
# TODO: Install shared library, remove static library.
name=lua
majver=5.3
version=$majver.3

21
satellites/nxengine.sat

@ -1,21 +1,24 @@
name=nxengine
version=1006
update_url="http://nxengine.sourceforge.net/"
update_url='http://nxengine.sourceforge.net/'
define_option 'dir_runtime=$HOME/.nxengine: The directory used to store the nxengine configuration and save files.'
define_option 'console_key=`: The key used to access the debug console.'
dlextract "http://nxengine.sourceforge.net/dl/nx-src-$version.tar.bz2" \
"cc0d1f5608bba70df86a6f5a3b4dd3bd"
'cc0d1f5608bba70df86a6f5a3b4dd3bd'
download "http://www.cavestory.org/downloads/cavestoryen.zip" \
"5aad47f1cb72185d6e7f4c8c392f6b6e"
'5aad47f1cb72185d6e7f4c8c392f6b6e'
extrafile "nxengine.sh"
extrafile "nxengine.desktop"
extrafile "nxengine.png"
extrafile 'nxengine.sh'
extrafile 'nxengine.desktop'
extrafile 'nxengine.png'
header_end
extract "cavestoryen.zip" '' "unzip -qd {dst} {src}"
extract 'cavestoryen.zip' '' 'unzip -qd {dst} {src}'
# Some keyboards don't have an accessible backtick.
console_key="$(safe_sed $(option console_key=\`))"
console_key="$(safe_sed $(option =console_key))"
sed -i -e "s/\`/$console_key/" nx/input.cpp
sed -i -e "s/\`/$console_key/" nx/console.cpp
@ -35,7 +38,7 @@ cp -r CaveStory/data "$dir_install/$dir_prefix/share/nxengine/data"
# Install the run script
# Where the files will be copied to on runtime.
dir_runtime="$(option dir_runtime=\$HOME/.nxengine)"
dir_runtime="$(option =dir_runtime)"
sed -i -e "s/%PREFIX%/$(safe_sed "$dir_prefix")/" \
-e "s/%RUNTIME%/$(safe_sed "$dir_runtime")/" \
-e "s/%LIBDIR%/$(safe_sed "$dir_libdir")/" \

42
satellites/qt5-base.sat

@ -0,0 +1,42 @@
import 'compile/qt5source'
name=qt5
majver=5.7
version=$majver.0
optional_libraries='libpng libjpeg doubleconversion freetype harfbuzz'
for opt in $optional_libraries; do
define_option "$opt: Enable support for $opt."
done
dlextract "http://download.qt.io/official_releases/qt/$majver/$version/submodules/qtbase-opensource-src-$version.tar.xz" \
'184f9460b40752d71b15b827260580c2'
header_end
cd "qtbase-opensource-src-$version"
# Build using custom CFLAGS, CXXFLAGS and LDFLAGS (Shamelessly stolen from ArchLinux)
sed -i -e "s/^\(QMAKE_CFLAGS_RELEASE.*\)/\1 $(safe_sed "$CFLAGS")/" mkspecs/common/gcc-base.conf
sed -i -e "s/^\(QMAKE_CXXFLAGS_RELEASE.*\)/\1 $(safe_sed "$CXXFLAGS")/" mkspecs/common/gcc-base.conf
sed -i -e "s/^\(QMAKE_LFLAGS_RELEASE.*\)/\1 $(safe_sed "$LDFLAGS")/" mkspecs/common/g++-unix.conf
optional=""
for opt in $optional_libraries; do
option $opt && optional="$optional -system-$opt" || optional="$optional -no-$opt"
done
echo "$optional"
# Make sure all the possible libraries are linked from the OS, as Qt might use it's own if they aren't available.
compile_qt5source \
-system-sqlite \
-system-zlib \
-system-pcre \
-system-xcb \
-system-xkbcommon-x11 \
-openssl-linked \
-dbus-linked \
-nomake examples \
$optional
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

1
satellites/vcs/functions

@ -1 +0,0 @@
../functions

9
satellites/volumeicon.sat

@ -1,14 +1,15 @@
import "compile/configure"
import 'compile/configure'
name=volumeicon
version=0.5.1
update_url="http://softwarebakery.com/maato/$name.html"
update_url="http://nullwise.com/$name.html"
dlextract "http://softwarebakery.com/maato/files/$name/$name-$version.tar.gz" \
"48230f3a1843fa4cc4ec97d0da35c3f5"
dlextract "http://nullwise.com/files/$name/$name-$version.tar.gz" \
'48230f3a1843fa4cc4ec97d0da35c3f5'
header_end
cd "$name-$version"
sed -i -e 's/-DCOMPILEWITH_NOTIFY/ &/' ./configure
compile_configure --enable-notify
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

Loading…
Cancel
Save