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_only=false
vcs_compile=false vcs_compile=false
unset _user_options # Options specified in the command line get the highest priority 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) #_nuke_dir_install (This can be set from wrappers)
# Should be specified in the satellite # Should be specified in the satellite
@ -211,10 +212,9 @@ option() {
local negate=false local negate=false
local variable=false local variable=false
case "$check" in case "$check" in
*=*) =*)
local variable=true local variable=true
local default="$(echo "$check" | cut -d '=' -f 2)" local check="$(echo "$check" | cut -c 2-)"
local check="$(echo "$check" | cut -d '=' -f 1)"
;; ;;
!*) !*)
local negate=true local negate=true
@ -223,34 +223,44 @@ option() {
esac esac
local enabled=false local enabled=false
local found=false
local opt local opt
local IFS=',' local IFS=','
for option in $options; do for option in $options; do
local option_negate=false local option_negate=false
local option_variable=false
case "$option" in case "$option" in
*=*) *=*)
local value="$(echo "$option" | cut -d '=' -f 2)" local value="$(echo "$option" | cut -d '=' -f 2)"
local option="$(echo "$option" | cut -d '=' -f 1)" local option="$(echo "$option" | cut -d '=' -f 1)"
local option_variable=true
;; ;;
!*) !*)
local option="$(echo "$option" | cut -c 2-)" local option="$(echo "$option" | cut -c 2-)"
local option_negate=true local option_negate=true
;;
esac esac
if [ "$option" = "$check" ]; then 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 [ "$option_negate" = true ] && local enabled=false || local enabled=true
local found=true
break break
fi fi
done 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 [ "$variable" = true ]; then
if [ "$enabled" = true ]; then echo "$value"
echo "$value" return
return
else
echo "$default"
return
fi
fi fi
if [ "$negate" = true ]; then if [ "$negate" = true ]; then
@ -267,6 +277,11 @@ option() {
fi fi
} }
define_option() {
local option="$(echo "$1" | cut -d ':' -f 1)"
options="$options,$option"
}
import() { import() {
. "$(dirname "$_satellite")/functions/$1.sh" . "$(dirname "$_satellite")/functions/$1.sh"
} }
@ -311,7 +326,7 @@ fi
_satellite="$(realpath "$_satellite")" _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" options="$_user_options$(package_options "$_satname"),$options"
# Create the directories # Create the directories

29
astronaut/astronaut.sat

@ -1,29 +1,34 @@
name=astronaut name=astronaut
version=$(date +%Y%m%d) 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 if option helpers; then
extrafile "astrohelp" extrafile 'astrohelp'
extrafile "freshnaut" extrafile 'freshnaut'
fi fi
option xbps extrafile "xbps-astronaut" option xbps extrafile 'xbps-astronaut'
option pacman extrafile "pacman-astronaut" option pacman extrafile 'pacman-astronaut'
option pkgtools extrafile "astronautpkg" option pkgtools extrafile 'astronautpkg'
header_end header_end
install -D "astronaut" "$dir_install/$dir_prefix/bin/astronaut" install -D 'astronaut' "$dir_install/$dir_prefix/bin/astronaut"
# Optional helper tools # Optional helper tools
if option helpers; then if option helpers; then
install -D "astrohelp" "$dir_install/$dir_prefix/bin/astrohelp" install -D 'astrohelp' "$dir_install/$dir_prefix/bin/astrohelp"
install -D "freshnaut" "$dir_install/$dir_prefix/bin/freshnaut" install -D 'freshnaut' "$dir_install/$dir_prefix/bin/freshnaut"
fi fi
# Wrappers for specific package managers # Wrappers for specific package managers
option xbps install -D "xbps-astronaut" "$dir_install/$dir_prefix/bin/xbps-astronaut" 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 pacman install -D 'pacman-astronaut' "$dir_install/$dir_prefix/bin/pacman-astronaut"
option pkgtools install -D "astronautpkg" "$dir_install/$dir_prefix/bin/astronautpkg" option pkgtools install -D 'astronautpkg' "$dir_install/$dir_prefix/bin/astronautpkg"
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: # 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. # You define a function here, and it becomes available in any script that imports it.
say_hello() { say_hello() {
local tmp="Hello, there!" local tmp='Hello, there!'
echo "Function ran! $tmp" 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. # 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. # 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. # Astronaut will generally prefix internal variables with "_". There are, however, a few exceptions.
# Some of those you can touch, some not. # Some of those you can touch, some not.
@ -61,35 +67,33 @@ header_end # End of the header.
# - dlfile # - dlfile
# - extrafile # - extrafile
# - import # - import
# - define_option
# getfile and extract are technically allowed, but not encouraged. # 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. # 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. # The same rule above applies for imported commands.
# Name [REQUIRED], Destination, Custom command # Name [REQUIRED], Destination, Custom command
extract "$name-$version.tar.gz" \ extract "$name-$version.tar.gz" \
"." \ '.' \
"tar xvfC {src} {dst}" 'tar xvfC {src} {dst}'
# Copy some file you downloaded over to the build directory. # Copy some file you downloaded over to the build directory.
#getfile "Waffles.txt" #getfile "Waffles.txt"
# Compilation instructions # Compilation instructions
cd "$name-$version" cd "$name-$version"
./configure --prefix="$dir_prefix" ./configure --prefix="/$dir_prefix"
make make
# Know if the user wants the package to be checked # Know if the user wants the package to be checked
# Check if an option is disabled # Check if an option is disabled
if option !no_check; then if option check; then
make check make check
fi fi
# Abbreviation of the above # Abbreviation of the above
option test echo "Test option enabled" #option check make check
# Bangs ("!") negate the operation. # Bangs ("!") negate the operation.
#option !test echo "Test option disabled" #option !check echo "The package wasn't checked"
# Options with arguments.
echo "Value of option test2 = $(option "test2=default value")"
make DESTDIR="$dir_install" install make DESTDIR="$dir_install" install
rm "$dir_install/$dir_prefix/share/info/dir" # This file collides with some other packages. 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 # Call the function we imported. For more info see the top of the file, and functions/say_hello.sh
say_hello say_hello
# Options with values.
echo "Value of option test = $(option =test)"
# Misc functions: # Misc functions:
#safe_sed 'oh/i/hope\i\canuse%&thisinsed' #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: # 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 version=2.10
update_url="https://ftp.gnu.org/gnu/$name/" 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" \ dlextract "https://ftp.gnu.org/gnu/$name/$name-$version.tar.gz" \
"6cd0ffea3884a4e79330338dcc2987d6" "6cd0ffea3884a4e79330338dcc2987d6"
header_end header_end
cd "$name-$version" cd "$name-$version"
./configure --prefix="$dir_prefix" ./configure --prefix="/$dir_prefix"
make make
option !no_check make check option check make check
make DESTDIR="$dir_install" install make DESTDIR="$dir_install" install
rm -f "$dir_install/$dir_prefix/share/info/dir" # This file collides with some other packages. 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_url="https://github.com/d0k3/$name/releases"
update_names="v$version.tar.gz" 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 header_end
cd "$name-$version" 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 version=6_30_223_271
update_url="https://aur.archlinux.org/packages/$name-dkms/" 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" \ 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" \ 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" \ 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" \ 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 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 001-null-pointer-fix.patch
patch -p1 -i 002-rdtscl.patch patch -p1 -i 002-rdtscl.patch
make KBUILD_DIR="$dir_sysroot/lib/modules/$(uname -r)/build" patch -p1 -i 003-linux47.patch
install -Dm 644 "wl.ko" "$dir_install/lib/modules/$(uname -r)/kernel/drivers/net/wireless/wl.ko" 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" install -Dm 644 "$name-dkms.conf" "$dir_install/etc/modprobe.d/$name.conf"
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: # 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" update_names="archive/$version.tar.gz"
dlextract "https://github.com/profi200/$name/archive/$version.tar.gz" \ dlextract "https://github.com/profi200/$name/archive/$version.tar.gz" \
"ff68864fade3dd822850180076a08357" 'ff68864fade3dd822850180076a08357'
header_end header_end
cd "$name-$version/ctrtool" 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 name=Heimdall
version=1.4.1 version=1.4.1
update_url="https://github.com/Benjamin-Dobell/$name/releases" update_url="https://github.com/Benjamin-Dobell/$name/releases"
dlextract "https://github.com/Benjamin-Dobell/$name/archive/v$version.tar.gz" \ dlextract "https://github.com/Benjamin-Dobell/$name/archive/v$version.tar.gz" \
"22c911e9042f5ed8fd90cbeeb9589015" '22c911e9042f5ed8fd90cbeeb9589015'
header_end header_end
cd "$name-$version/libpit" 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 name=include-what-you-use
version=0.6 version=0.6
update_url="http://include-what-you-use.org/downloads/" update_url="http://include-what-you-use.org/downloads/"
dlextract "http://include-what-you-use.org/downloads/$name-$version.src.tar.gz" \ dlextract "http://include-what-you-use.org/downloads/$name-$version.src.tar.gz" \
"e4dffc7c2396f0e3f2b7499c077325b5" 'e4dffc7c2396f0e3f2b7499c077325b5'
header_end header_end
cd "$name" 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" import 'compile/configure'
# TODO: Can't get 1.21 to install properly
name=fakeroot name=fakeroot
#version=1.21 version=1.21
version=1.20.2
update_url="http://http.debian.net/debian/pool/main/f/$name/" 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" \ dlextract "http://http.debian.net/debian/pool/main/f/$name/${name}_$version.orig.tar.gz" \
#"be5c9a0e516869fca4a6758105968e5a" 'be5c9a0e516869fca4a6758105968e5a'
dlextract "http://http.debian.net/debian/pool/main/f/$name/${name}_$version.orig.tar.bz2" \
"a4b4564a75024aa96c86e4d1017ac786"
header_end header_end
cd "$name-$version" cd "$name-$version/doc"
#./bootstrap po4a -k 0 --rm-backups --variable 'srcdir=../doc/' po4a/po4a.cfg
cd ..
./bootstrap
compile_configure --disable-static compile_configure --disable-static
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: # vim:set tabstop=4 shiftwidth=4 syntax=sh et:

18
satellites/functions/compile/configure.sh

@ -2,15 +2,15 @@ compile_configure() {
./configure \ ./configure \
--prefix="/$dir_prefix" \ --prefix="/$dir_prefix" \
--sysconfdir="/$dir_sysconfdir" \ --sysconfdir="/$dir_sysconfdir" \
--bindir="$dir_prefix/$dir_bindir" \ --bindir="/$dir_prefix/$dir_bindir" \
--sbindir="$dir_prefix/$dir_sbindir" \ --sbindir="/$dir_prefix/$dir_sbindir" \
--libdir="$dir_prefix/$dir_libdir" \ --libdir="/$dir_prefix/$dir_libdir" \
--libexecdir="$dir_prefix/$dir_libexecdir" \ --libexecdir="/$dir_prefix/$dir_libexecdir" \
--datadir="$dir_prefix/$dir_datadir" \ --datadir="/$dir_prefix/$dir_datadir" \
--mandir="$dir_prefix/$dir_mandir" \ --mandir="/$dir_prefix/$dir_mandir" \
--docdir="$dir_prefix/$dir_docdir/$name" \ --docdir="/$dir_prefix/$dir_docdir/$name" \
--infodir="$dir_prefix/$dir_infodir" \ --infodir="/$dir_prefix/$dir_infodir" \
--localedir="$dir_prefix/$dir_localedir" \ --localedir="/$dir_prefix/$dir_localedir" \
$@ $@
make make
make DESTDIR="$dir_install/" install 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 name=lua
majver=5.3 majver=5.3
version=$majver.3 version=$majver.3

21
satellites/nxengine.sat

@ -1,21 +1,24 @@
name=nxengine name=nxengine
version=1006 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" \ dlextract "http://nxengine.sourceforge.net/dl/nx-src-$version.tar.bz2" \
"cc0d1f5608bba70df86a6f5a3b4dd3bd" 'cc0d1f5608bba70df86a6f5a3b4dd3bd'
download "http://www.cavestory.org/downloads/cavestoryen.zip" \ download "http://www.cavestory.org/downloads/cavestoryen.zip" \
"5aad47f1cb72185d6e7f4c8c392f6b6e" '5aad47f1cb72185d6e7f4c8c392f6b6e'
extrafile "nxengine.sh" extrafile 'nxengine.sh'
extrafile "nxengine.desktop" extrafile 'nxengine.desktop'
extrafile "nxengine.png" extrafile 'nxengine.png'
header_end header_end
extract "cavestoryen.zip" '' "unzip -qd {dst} {src}" extract 'cavestoryen.zip' '' 'unzip -qd {dst} {src}'
# Some keyboards don't have an accessible backtick. # 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/input.cpp
sed -i -e "s/\`/$console_key/" nx/console.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 # Install the run script
# Where the files will be copied to on runtime. # 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")/" \ sed -i -e "s/%PREFIX%/$(safe_sed "$dir_prefix")/" \
-e "s/%RUNTIME%/$(safe_sed "$dir_runtime")/" \ -e "s/%RUNTIME%/$(safe_sed "$dir_runtime")/" \
-e "s/%LIBDIR%/$(safe_sed "$dir_libdir")/" \ -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 name=volumeicon
version=0.5.1 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" \ dlextract "http://nullwise.com/files/$name/$name-$version.tar.gz" \
"48230f3a1843fa4cc4ec97d0da35c3f5" '48230f3a1843fa4cc4ec97d0da35c3f5'
header_end header_end
cd "$name-$version" cd "$name-$version"
sed -i -e 's/-DCOMPILEWITH_NOTIFY/ &/' ./configure
compile_configure --enable-notify compile_configure --enable-notify
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: # vim:set tabstop=4 shiftwidth=4 syntax=sh et:

Loading…
Cancel
Save