Browse Source

Bunch 'o updates

master
mid-kid 8 years ago
parent
commit
7da1408ebe
  1. 22
      astronaut/astrohelp
  2. 10
      astronaut/astronaut
  3. 7
      astronaut/astronautpkg
  4. 6
      graveyard/unmaintained_satellites/minitube.sat
  5. 19
      satellites/bam-0.4.sat
  6. 19
      satellites/bam.sat
  7. 0
      satellites/broadcom-wl.sat
  8. 8
      satellites/extrafiles/teeworlds/teeworlds.desktop
  9. 21
      satellites/fakeroot.sat
  10. 39
      satellites/functions/compile/configure.sh
  11. 2
      satellites/functions/compile/python.sh
  12. 19
      satellites/functions/compile/qt.sh
  13. 15
      satellites/functions/compile/qt5source.sh
  14. 18
      satellites/libtorrent-rasterbar.sat
  15. 2
      satellites/libxkbcommon.sat
  16. 47
      satellites/lua.sat
  17. 19
      satellites/nxengine.sat
  18. 25
      satellites/p7zip.sat
  19. 14
      satellites/python3-jinja2.sat
  20. 14
      satellites/python3-markupsafe.sat
  21. 14
      satellites/python3-peg2.sat
  22. 14
      satellites/python3-pygments.sat
  23. 17
      satellites/python3-qt5.sat
  24. 15
      satellites/python3-setuptools.sat
  25. 16
      satellites/python3-sip.sat
  26. 14
      satellites/python3-yaml.sat
  27. 39
      satellites/python3.sat
  28. 19
      satellites/qbittorrent.sat
  29. 35
      satellites/qt5-base.sat
  30. 22
      satellites/qt5-tools.sat
  31. 32
      satellites/qutebrowser.sat
  32. 31
      satellites/teeworlds.sat
  33. 38
      satellites/unetbootin.sat
  34. 2
      satellites/volumeicon.sat
  35. 20
      satellites/zim.sat

22
astronaut/astrohelp

@ -7,7 +7,8 @@ Usage: $0 <satellite file> <function> [arguments]
Functions:
variable <name> | Get variable set in the header
downloads | Get all download urls"
downloads | Get all download urls
options | List all available options and their descriptions"
}
if [ $# -lt 2 ]; then
@ -18,6 +19,13 @@ fi
satellite="$(realpath "$1")"
function="$2"
# Functions reused in different wrappers
func_import=$(printf '
import() {
. "%s/functions/$1.sh"
}
' "$(dirname "$satellite")")
if [ "$function" = "variable" ]; then
name="$3"
if [ ! "$name" ]; then
@ -25,7 +33,7 @@ if [ "$function" = "variable" ]; then
exit 1
fi
printf '
printf "$func_import"'
header_end() {
variable="$%s"
[ "$variable" ] && echo "$variable"
@ -34,7 +42,7 @@ if [ "$function" = "variable" ]; then
. %s
' "$name" "$satellite" | PATH= /bin/sh 2> /dev/null
elif [ "$function" = "downloads" ]; then
printf '
printf "$func_import"'
download() {
[ "$1" ] && echo "$1"
}
@ -47,6 +55,14 @@ elif [ "$function" = "downloads" ]; then
header_end() { exit 0; }
. %s
' "$satellite" | PATH= /bin/sh 2> /dev/null
elif [ "$function" = "options" ]; then
printf "$func_import"'
define_option() {
echo "$1"
}
header_end() { exit 0; }
. %s
' "$satellite" | PATH= /bin/sh 2> /dev/null
else
show_help
exit 1

10
astronaut/astronaut

@ -3,9 +3,9 @@
# Configuration
# Build/install-time directories
dir_build='/var/tmp/astronaut/build' # Temporary directory to build packages
dir_source='/var/tmp/astronaut/source' # Directory where the package sources will be placed
dir_install='/var/tmp/astronaut/install' # Directory where the package will be installed
dir_build='/tmp/astronaut/build' # Temporary directory to build packages
dir_source='/tmp/astronaut/source' # Directory where the package sources will be placed
dir_install='/tmp/astronaut/install' # Directory where the package will be installed
# The source directory will have subdirs for each different $name,
# specified inside the satellite file.
# The $dir_install variable will have '{pkg}' replaced with $_satname,
@ -243,7 +243,7 @@ option() {
if [ "$option" = "$check" ]; then
if [ "$variable" = true -a "$option_variable" = false ]; then
_msg 'Tip: Define the option as option=value.'
_msg 'Tip: Define the option as option=value.' 1>&2
_exiterr "Satellite requested a variable option, but there was no value for option: '$option'."
fi
@ -254,7 +254,7 @@ option() {
done
if [ "$found" = false ]; then
_msg 'Tip: Make sure to define every option you use in the satellite.'
_msg 'Tip: Make sure to define every option you use in the satellite.' 1>&2
_exiterr "Option '$check' was nowhere to be found."
fi

7
astronaut/astronautpkg

@ -20,10 +20,13 @@ _nuke_dir_install=true
. "$_astronaut"
# Gzip man and info pages
[ -d "$dir_install/$dir_prefix/$dir_mandir" ] && gzip -9 -r "$dir_install/$dir_prefix/$dir_mandir"
if [ -d "$dir_install/$dir_prefix/$dir_mandir" ]; then
find "$dir_install/$dir_prefix/$dir_mandir" -type f -exec gzip -9 {} \;
for i in $(find "$dir_install/$dir_prefix/$dir_mandir" -type l) ; do ln -s "$(readlink "$i").gz" "$i.gz"; rm "$i"; done
fi
[ -d "$dir_install/$dir_prefix/$dir_infodir" ] && gzip -9 -r "$dir_install/$dir_prefix/$dir_infodir"
# _dir_pkgtools should be set from a configuration file (e.g. ~/.astronaut.conf), and points to wherever you want your packages to be placed.
[ "$dir_wrapper_pkgtools" ] && mkdir -p "$dir_wrapper_pkgtools" || dir_wrapper_pkgtools="$_topdir"
cd "$dir_install"
PATH=$PATH:/sbin "$_fakeroot" makepkg -l y -c n "$dir_wrapper_pkgtools/$name-$version-$(uname -m)-astro.tgz"
PATH=$PATH:/sbin "$_fakeroot" makepkg -l y -c n "$dir_wrapper_pkgtools/$_satname-$version-$(uname -m)-astro.tgz"

6
graveyard/unmaintained_satellites/minitube.sat

@ -1,4 +1,4 @@
import "compile/qt"
import 'compile/qt'
name=minitube
version=2.5.2
@ -6,10 +6,10 @@ update_url="https://github.com/flaviotordini/$name/releases"
update_names="archive/$version.tar.gz"
dlextract "https://github.com/flaviotordini/$name/archive/$version.tar.gz" \
"9545f0e9bf70bcb648b25af4813338cb"
'9545f0e9bf70bcb648b25af4813338cb'
header_end
cd "$name-$version"
compile_qt 5 DEFINES+="APP_GOOGLE_API_KEY=AIzaSyBzMj41taMuHLAF95-y9cTXL4JpPGqMORk" # API key provided by Gottox (https://raw.githubusercontent.com/voidlinux/void-packages/master/srcpkgs/minitube/template)
compile_qt 5 DEFINES+='APP_GOOGLE_API_KEY=AIzaSyBzMj41taMuHLAF95-y9cTXL4JpPGqMORk' # API key provided by Gottox (https://raw.githubusercontent.com/voidlinux/void-packages/master/srcpkgs/minitube/template)
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

19
satellites/bam-0.4.sat

@ -0,0 +1,19 @@
# NOTE: This program includes lua 5.1 in it's source code. Due to how it's built, it's hard to link it against the system libs instead.
name=bam
version=0.4.0
update_url="https://matricks.github.io/$name/"
dlextract "http://github.com/downloads/matricks/$name/$name-$version.tar.bz2" \
'f8b62ad553c3615a725a034df4fb4257'
header_end
cd "$name-$version"
# Allow for custom cflags
sed -i -e "s/-rdynamic/& $(safe_sed "$CFLAGS")/" make_unix.sh
./make_unix.sh
install -Dm755 "$name" "$dir_install/$dir_prefix/$dir_bindir/$name-0.4"
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

19
satellites/bam.sat

@ -0,0 +1,19 @@
name=bam
version=0.5.0
update_url="https://github.com/matricks/$name/releases"
dlextract "https://github.com/matricks/$name/archive/v$version.tar.gz" \
'08db8dfc32fb817947c39000092a55d4'
header_end
cd "$name-$version"
# Fix parallel make
cat >> Makefile << EOF
src/internal_base.h: src/tools/txt2c
src/main.o: src/internal_base.h
EOF
make
install -Dm755 "$name" "$dir_install/$dir_prefix/$dir_bindir/$name"
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

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

8
satellites/extrafiles/teeworlds/teeworlds.desktop

@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=Teeworlds
Comment=A retro multiplayer shooter
Exec=teeworlds
Icon=teeworlds
Terminal=false
Categories=Game;ArcadeGame;

21
satellites/fakeroot.sat

@ -1,18 +1,23 @@
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/doc"
po4a -k 0 --rm-backups --variable 'srcdir=../doc/' po4a/po4a.cfg
cd ..
cd "$name-$version"
./bootstrap
compile_configure --disable-static
#cd 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:

39
satellites/functions/compile/configure.sh

@ -1,5 +1,33 @@
define_option 'cross=: Cross compile a program to run on the specified target triplet.'
define_option "build=: Explicity specify the host machine's target triplet."
compile_configure() {
./configure \
local builddir=""
local noinstall=false
local olddir="$PWD"
local makeflags=""
local OPTIND=1
local opt
while getopts "b:c:m:I" opt; do case "$opt" in
b) local builddir="$OPTARG" ;;
I) local noinstall=true ;;
m) local makeflags="$OPTARG" ;;
esac; done
shift $((OPTIND-1))
[ "$1" = "--" ] && shift
if [ "$builddir" ]; then
mkdir -p "$builddir"
cd "$builddir"
fi
local cross="$(option =cross)"
[ "$cross" ] && local cross="--host=$cross"
local build="$(option =build)"
[ "$build" ] && local build="--build=$build"
"$olddir/configure" \
--prefix="/$dir_prefix" \
--sysconfdir="/$dir_sysconfdir" \
--bindir="/$dir_prefix/$dir_bindir" \
@ -11,7 +39,10 @@ compile_configure() {
--docdir="/$dir_prefix/$dir_docdir/$name" \
--infodir="/$dir_prefix/$dir_infodir" \
--localedir="/$dir_prefix/$dir_localedir" \
$@
make
make DESTDIR="$dir_install/" install
$build $cross $@
make $makeflags
[ "$noinstall" = false ] && make DESTDIR="$dir_install" $makeflags install
[ "$builddir" ] && cd "$olddir" || true
}

2
satellites/functions/compile/python.sh

@ -1,4 +1,4 @@
compile_python() {
local ver="$1"; shift
python$ver setup.py install --prefix="/$dir_prefix" --root="$dir_install" $@
python$ver setup.py install --prefix="/$dir_prefix" --root="$dir_install" --optimize=2 $@
}

19
satellites/functions/compile/qt.sh

@ -1,6 +1,23 @@
compile_qt() {
local ver="$1"; shift
qmake-qt$ver PREFIX="/$dir_prefix" build_mode=release build_type=shared $@
$(compile_qt_get_cmd qmake "$ver") PREFIX="/$dir_prefix" build_mode=release build_type=shared $@
make
make INSTALL_ROOT="$dir_install" install
}
compile_qt_get_cmd() {
local cmd="$1"; shift
local ver="$1"
# Some machines don't have cmd-qt4, and use cmd instead.
if [ "$ver" = "4" ]; then
if command -v "$cmd-qt$ver" > /dev/null; then
echo "$cmd-qt$ver"
else
echo "$cmd"
fi
else
echo "$cmd-qt$ver"
fi
}

15
satellites/functions/compile/qt5source.sh

@ -1,15 +0,0 @@
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
}

18
satellites/libtorrent-rasterbar.sat

@ -0,0 +1,18 @@
import 'compile/configure'
name=libtorrent-rasterbar
version=1.1.0
update_url='https://github.com/arvidn/libtorrent/releases'
dlextract "https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_1/$name-$version.tar.gz" \
'3a291044b5b33fec3e30b22a94fda31f'
header_end
cd "$name-$version"
# Fix compilation error with qBittorrent (https://github.com/qbittorrent/qBittorrent/issues/5265#issuecomment-220007436)
export CXXFLAGS="$CXXFLAGS -std=c++11"
compile_configure -- --disable-static --with-libiconv
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

2
satellites/libxkbcommon.sat

@ -9,6 +9,6 @@ dlextract "http://xkbcommon.org/download/$name-$version.tar.xz" \
header_end
cd "$name-$version"
compile_configure --disable-static
compile_configure -- --disable-static
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

47
satellites/lua.sat

@ -1,24 +1,53 @@
# TODO: Install shared library, remove static library.
name=lua
majver=5.3
version=$majver.3
update_url="http://www.lua.org/download.html"
dlextract "http://www.lua.org/ftp/$name-$version.tar.gz" \
"703f75caa4fdf4a911c1a72e67a27498"
'703f75caa4fdf4a911c1a72e67a27498'
header_end
cd "$name-$version"
# Fix paths in luaconf.h
sed -i -e "/LUA_ROOT/s/usr\/local/$(safe_sed "$dir_prefix")/" \
-e "/LUA_LDIR/s/share/$(safe_sed "$dir_datadir")/" \
-e "/LUA_CDIR/s/lib/$(safe_sed "$dir_libdir")/" src/luaconf.h
make linux \
MYLIBS="-lncurses" \
MYCFLAGS="$CFLAGS"
MYCFLAGS="$CFLAGS -fPIC" \
MYLDFLAGS="$LDFLAGS"
make install \
INSTALL_TOP="$dir_install/$dir_prefix" \
INSTALL_BIN="$dir_install/$dir_prefix/$dir_bindir" \
INSTALL_LIB="$dir_install/$dir_prefix/$dir_libdir" \
INSTALL_MAN="$dir_install/$dir_prefix/$dir_mandir" \
INSTALL_CMOD="$dir_install/$dir_prefix/$dir_libdir/$majver"
INSTALL_TOP="$PWD/install" \
INSTALL_BIN="\$(INSTALL_TOP)/$dir_bindir" \
INSTALL_LIB="\$(INSTALL_TOP)/$dir_libdir" \
INSTALL_MAN="\$(INSTALL_TOP)/$dir_mandir/man1" \
INSTALL_LMOD="\$(INSTALL_TOP)/$dir_datadir/$majver" \
INSTALL_CMOD="\$(INSTALL_TOP)/$dir_libdir/$majver"
# Check the build log to find this
libs="-lm -Wl,-E -ldl -lreadline -lncurses"
# Build the shared library
( cd "install/$dir_libdir"
ar x liblua.a
rm liblua.a
cc -shared "-Wl,-soname,liblua.so.$majver" *.o $libs -o "liblua.so.$version"
rm *.o
ln -s "liblua.so.$version" "liblua.so.$majver"
ln -s "liblua.so.$version" liblua.so
)
# Link the binary against the shared library
rm "install/$dir_bindir/lua"
gcc src/lua.o "install/$dir_libdir/liblua.so" $libs -o "install/$dir_bindir/lua"
rm "install/$dir_bindir/luac"
gcc src/luac.o src/lopcodes.o src/ldump.o "install/$dir_libdir/liblua.so" $libs -o "install/$dir_bindir/luac"
# Actually install
mkdir -p "$dir_install/$dir_prefix"
cp -a install/* "$dir_install/$dir_prefix/"
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

19
satellites/nxengine.sat

@ -10,9 +10,9 @@ dlextract "http://nxengine.sourceforge.net/dl/nx-src-$version.tar.bz2" \
download "http://www.cavestory.org/downloads/cavestoryen.zip" \
'5aad47f1cb72185d6e7f4c8c392f6b6e'
extrafile 'nxengine.sh'
extrafile 'nxengine.desktop'
extrafile 'nxengine.png'
extrafile "$name.sh"
extrafile "$name.desktop"
extrafile "$name.png"
header_end
extract 'cavestoryen.zip' '' 'unzip -qd {dst} {src}'
@ -29,12 +29,11 @@ sed -i -e '/g++/s/-o/$(CFLAGS) -o/g' nx/Makefile
make -C nx
# Install the nxengine executable
install -Dm755 nx/nx "$dir_install/$dir_prefix/$dir_libdir/nxengine/nx"
install -Dm755 nx/nx "$dir_install/$dir_prefix/$dir_libdir/$name/nx"
# Install the necessary data
mkdir -p "$dir_install/$dir_prefix/share/nxengine"
install -m644 nx/font.ttf nx/smalfont.bmp nx/sprites.sif nx/tilekey.dat CaveStory/Doukutsu.exe "$dir_install/$dir_prefix/share/nxengine/"
cp -r CaveStory/data "$dir_install/$dir_prefix/share/nxengine/data"
install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/$name" nx/font.ttf nx/smalfont.bmp nx/sprites.sif nx/tilekey.dat CaveStory/Doukutsu.exe
cp -a CaveStory/data "$dir_install/$dir_prefix/$dir_datadir/$name/data"
# Install the run script
# Where the files will be copied to on runtime.
@ -44,10 +43,10 @@ sed -i -e "s/%PREFIX%/$(safe_sed "$dir_prefix")/" \
-e "s/%LIBDIR%/$(safe_sed "$dir_libdir")/" \
-e "s/%DATADIR%/$(safe_sed "$dir_datadir")/" \
nxengine.sh
install -Dm755 nxengine.sh "$dir_install/$dir_prefix/$dir_bindir/nxengine"
install -Dm755 "$name.sh" "$dir_install/$dir_prefix/$dir_bindir/$name"
# Install desktop file and icon
install -Dm644 nxengine.png "$dir_install/$dir_prefix/share/pixmaps/nxengine.png"
install -Dm644 nxengine.desktop "$dir_install/$dir_prefix/share/applications/nxengine.desktop"
install -Dm644 "$name.png" "$dir_install/$dir_prefix/$dir_datadir/pixmaps/$name.png"
install -Dm644 "$name.desktop" "$dir_install/$dir_prefix/$dir_datadir/applications/$name.desktop"
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

25
satellites/p7zip.sat

@ -0,0 +1,25 @@
name=p7zip
version=16.02
update_url="https://sourceforge.net/projects/$name/files/$name/"
update_names="<a href=\"/projects/$name/files/$name/$version/stats/timeline\""
dlextract "https://sourceforge.net/projects/$name/files/$name/$version/${name}_${version}_src_all.tar.bz2" \
'a0128d661cfe7cc8c121e73519c54fbf'
header_end
cd "${name}_$version"
if [ "$(uname -m)" = "x86_64" ]; then
cp makefile.linux_amd64_asm makefile.machine
fi
make all3 OPTFLAGS="$CFLAGS"
make install \
DEST_DIR="$dir_install" \
DEST_HOME="/$dir_prefix" \
DEST_BIN="/$dir_prefix/$dir_bindir" \
DEST_SHARE="/$dir_prefix/$dir_libdir/$name" \
DEST_SHARE_DOC="/$dir_prefix/$dir_docdir/$name" \
DEST_MAN="/$dir_prefix/$dir_mandir"
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

14
satellites/python3-jinja2.sat

@ -0,0 +1,14 @@
import 'compile/python'
name=Jinja2
version=2.8
update_url="https://pypi.python.org/pypi/$name"
dlextract "https://pypi.python.org/packages/f2/2f/0b98b06a345a761bec91a079ccae392d282690c2d8272e708f4d10829e22/$name-$version.tar.gz" \
'edb51693fe22c53cee5403775c71a99e'
header_end
cd "$name-$version"
compile_python 3
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

14
satellites/python3-markupsafe.sat

@ -0,0 +1,14 @@
import 'compile/python'
name=MarkupSafe
version=0.23
update_url="https://pypi.python.org/pypi/$name"
dlextract "https://pypi.python.org/packages/c0/41/bae1254e0396c0cc8cf1751cb7d9afc90a602353695af5952530482c963f/$name-$version.tar.gz" \
'f5ab3deee4c37cd6a922fb81e730da6e'
header_end
cd "$name-$version"
compile_python 3
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

14
satellites/python3-peg2.sat

@ -0,0 +1,14 @@
import 'compile/python'
name=pyPEG2
version=2.15.2
update_url="https://pypi.python.org/pypi/$name"
dlextract "https://pypi.python.org/packages/f9/bd/10398e2c2d2070cc8a9c7153abfbd4ddb2895a2c52a32722ab8689e0cc7d/$name-$version.tar.gz" \
'84057d292808553290f0b78f42c64bbe'
header_end
cd "$name-$version"
compile_python 3
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

14
satellites/python3-pygments.sat

@ -0,0 +1,14 @@
import 'compile/python'
name=Pygments
version=2.1.3
update_url="https://pypi.python.org/pypi/$name"
dlextract "https://pypi.python.org/packages/b8/67/ab177979be1c81bc99c8d0592ef22d547e70bb4c6815c383286ed5dec504/$name-$version.tar.gz" \
'ed3fba2467c8afcda4d317e4ef2c6150'
header_end
cd "$name-$version"
compile_python 3
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

17
satellites/python3-qt5.sat

@ -0,0 +1,17 @@
import 'compile/python'
import 'compile/qt'
name=PyQt5
version=5.6
update_url='https://www.riverbankcomputing.com/software/pyqt/download5'
dlextract "http://sourceforge.net/projects/pyqt/files/$name/PyQt-$version/${name}_gpl-$version.tar.gz" \
'dbfc885c0548e024ba5260c4f44e0481'
header_end
cd "${name}_gpl-$version"
python3 configure.py --qmake "$(command -v "$(compile_qt_get_cmd qmake 5)")" --confirm-license
make
make DESTDIR="$dir_install" INSTALL_ROOT="$dir_install" install
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

15
satellites/python3-setuptools.sat

@ -0,0 +1,15 @@
import 'compile/python'
name=setuptools
version=25.1.0
update_url="https://pypi.python.org/pypi/$name"
update_names="$name-$version.tar.gz#md5="
dlextract "https://pypi.python.org/packages/17/ed/ea984f05dd29e7a1ffdee0eba8335b5c73903e2ca10915fbdb6e8c5084c7/$name-$version.tar.gz" \
'a4814dead37e74a86883c66f7d420d73'
header_end
cd "$name-$version"
compile_python 3
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

16
satellites/python3-sip.sat

@ -0,0 +1,16 @@
import 'compile/python'
name=sip
version=4.18
update_url="https://www.riverbankcomputing.com/software/$name/download"
dlextract "http://sourceforge.net/projects/pyqt/files/$name/$name-$version/$name-$version.tar.gz" \
'78724bf2a79878201c3bc81a1d8248ea'
header_end
cd "$name-$version"
python3 configure.py CFLAGS="$CFLAGS" LFLAGS="$LDFLAGS"
make
make DESTDIR="$dir_install" install
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

14
satellites/python3-yaml.sat

@ -0,0 +1,14 @@
import 'compile/python'
name=PyYAML
version=3.11
update_url="http://pyyaml.org/wiki/$name"
dlextract "http://pyyaml.org/download/pyyaml/$name-$version.tar.gz" \
'f50e08ef0fe55178479d3a618efe21db'
header_end
cd "$name-$version"
compile_python 3
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

39
satellites/python3.sat

@ -0,0 +1,39 @@
import 'compile/configure'
name=Python
version=3.5.2
update_url='https://www.python.org/downloads/'
dlextract "https://www.python.org/ftp/python/$version/$name-$version.tar.xz" \
'8906efbacfcdc7c3c9198aeefafd159e'
header_end
cd "$name-$version"
# Don't build the static library
sed -i -e '/$(BUILDPYTHON):/s/$(LIBRARY)//' \
-e '/Programs\/_testembed:/s/$(LIBRARY)//' \
-e '/test -d $(LIBRARY)/c\ @if false; then \\' Makefile.pre.in
# Remove windows binaries and scripts
find Lib \( -name '*.exe' -o -name '*.bat' \) -delete
# Fix paths
sed -i -e "/os.path.join(prefix/s/lib/$(safe_sed "$dir_libdir")/" Lib/site.py
sed -i -e "s/\/lib\/python/\/$(safe_sed "$dir_libdir")\/python/" \
-e "s/\/bin/\/$(safe_sed "$dir_bindir")/" Lib/sysconfig.py Lib/distutils/command/install.py
sed -i -e "/libpython =/!b;n;s/lib/$(safe_sed "$dir_libdir")/" Lib/distutils/sysconfig.py
sed -i -e "/lib_python =/s/lib\//$(safe_sed "$dir_libdir")\//" Modules/getpath.c
sed -i -e "/SCRIPTDIR=/s/lib/$(safe_sed "$dir_libdir")/" Makefile.pre.in
sed -i -e "/LIBPL=/s/lib/$(safe_sed "$dir_libdir")/" configure
compile_configure -- \
--enable-shared \
--with-threads \
--with-system-expat \
--with-system-ffi \
--with-system-libmpdec \
--without-ensurepip
make DESTDIR="$dir_install" maninstall
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

19
satellites/qbittorrent.sat

@ -0,0 +1,19 @@
import 'compile/configure'
name=qbittorrent
version=3.3.6
update_url='http://www.qbittorrent.org/download.php'
define_option 'qt4: Build for Qt4 instead of Qt5'
dlextract "http://sourceforge.net/projects/$name/files/$name/$name-$version/$name-$version.tar.xz" \
'246195ff8a5e44be8ecfcc8a7c01b5a9'
header_end
cd "$name-$version"
compile_configure -I -- \
--with-qtsingleapplication=shipped \
$(option qt4 && echo "--with-qt4 --with-qjson=shipped" || echo "--without-qt4")
make INSTALL_ROOT="$dir_install" install
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

35
satellites/qt5-base.sat

@ -1,42 +1,59 @@
import 'compile/qt5source'
name=qt5
submodule=base
majver=5.7
version=$majver.0
update_url='https://www.qt.io/download-open-source/'
update_names="qt-everywhere-opensource-src-$version.tar.gz"
optional_libraries='libpng libjpeg doubleconversion freetype harfbuzz'
optional_libraries='libpng libjpeg 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" \
dlextract "http://download.qt.io/official_releases/qt/$majver/$version/submodules/qt$submodule-opensource-src-$version.tar.xz" \
'184f9460b40752d71b15b827260580c2'
header_end
cd "qtbase-opensource-src-$version"
cd "qt$submodule-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
# Make sure all the possible libraries are linked from the OS, as Qt might use it's own if they aren't available.
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 \
# NOTE: Only double-conversion from Qt itself is used, as there's no recent stable version available, due to lack of maintenance (last I can find is 1.1.5 from 2014, but there's scripts to build 2.0.1, for example in AUR, yet there's no place to get the proper sources for that).
./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" \
-system-sqlite \
-system-zlib \
-system-pcre \
-system-xcb \
-system-xkbcommon-x11 \
-qt-doubleconversion \
-openssl-linked \
-dbus-linked \
-nomake examples \
$optional
make
make INSTALL_ROOT="$dir_install" install
mkdir -p "$dir_install/$dir_prefix/$dir_bindir"
for bin in "$dir_install/$dir_prefix/$dir_libdir/qt5/bin/"*; do
ln -s "../$dir_libdir/qt5/bin/$(basename "$bin")" "$dir_install/$dir_prefix/$dir_bindir/$(basename "$bin")-qt5"
done
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

22
satellites/qt5-tools.sat

@ -0,0 +1,22 @@
import 'compile/qt'
name=qt5
submodule=tools
majver=5.7
version=$majver.0
update_url='https://www.qt.io/download-open-source/'
update_names="qt-everywhere-opensource-src-$version.tar.gz"
dlextract "http://download.qt.io/official_releases/qt/$majver/$version/submodules/qt$submodule-opensource-src-$version.tar.xz" \
'29eb3fd31582b5801e264c62d1158553'
header_end
cd "qt$submodule-opensource-src-$version"
compile_qt 5
mkdir -p "$dir_install/$dir_prefix/$dir_bindir"
for bin in "$dir_install/$dir_prefix/$dir_libdir/qt5/bin/"*; do
ln -s "../$dir_libdir/qt5/bin/$(basename "$bin")" "$dir_install/$dir_prefix/$dir_bindir/$(basename "$bin")-qt5"
done
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

32
satellites/qutebrowser.sat

@ -0,0 +1,32 @@
import 'compile/python'
name=qutebrowser
version=0.7.0
update_url="https://github.com/The-Compiler/$name/releases"
dlextract "https://github.com/The-Compiler/$name/releases/download/v$version/$name-$version.tar.gz" \
'8f9feba57eb648d4c5b832bddb741be4'
header_end
cd "$name-$version"
# Fix paths
sed -i -e "s/usr\/share/$(safe_sed "$dir_prefix/$dir_datadir")/" qutebrowser/utils/standarddir.py
compile_python 3
# Install manpage
a2x -f manpage "doc/$name.1.asciidoc"
install -Dm644 "doc/$name.1" "$dir_install/$dir_prefix/$dir_mandir/man1/$name.1"
# Install desktop and icons
install -Dm644 "$name.desktop" "$dir_install/$dir_prefix/$dir_datadir/applications/$name.desktop"
for x in 16 24 32 48 64 96 128 256 512; do
install -Dm644 "icons/$name-${x}x$x.png" "$dir_install/$dir_prefix/$dir_datadir/icons/hicolor/${x}x$x/apps/$name.png"
done
install -Dm644 "icons/$name.svg" "$dir_install/$dir_prefix/$dir_datadir/icons/scalable/apps/$name.svg"
# Install userscripts
install -Dm755 -t "$dir_install/$dir_prefix/$dir_datadir/$name/userscripts/" misc/userscripts/*
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

31
satellites/teeworlds.sat

@ -0,0 +1,31 @@
# NOTE: This program includes external libraries in their source code: pnglite, wavpack and zlib. Due to how this program is built, it's hard to link with the system ones instead.
name=teeworlds
version=0.6.3
update_url='https://www.teeworlds.com/?page=downloads'
dlextract "https://downloads.teeworlds.com/$name-$version-src.tar.gz" \
'bbe9faa26caf796bcdffc4bc635118fd'
extrafile "$name.desktop"
header_end
cd "$name-$version-src"
convert other/icons/Teeworlds.ico "$name.png"
# Allow for custom CFLAGS
sed -i -e "/CONF_RELEASE/arelease_settings.cc.flags:Add('$CFLAGS')\nrelease_settings.link.flags:Add('$LDFLAGS')" bam.lua
# Fix data path
sed -i -e "s/usr\/share\/$name\/data/$(safe_sed "$dir_prefix/$dir_datadir/$name")/" src/engine/shared/storage.cpp
bam-0.4 $BAMFLAGS game_release
mkdir -p "$dir_install/$dir_prefix/$dir_datadir/$name"
cp -a data/* "$dir_install/$dir_prefix/$dir_datadir/$name/"
install -Dm755 "$name" "$dir_install/$dir_prefix/$dir_bindir/$name"
install -Dm755 "${name}_srv" "$dir_install/$dir_prefix/$dir_bindir/${name}_srv"
install -Dm644 "$name-0.png" "$dir_install/$dir_prefix/$dir_datadir/pixmaps/$name.png"
install -Dm644 "../$name.desktop" "$dir_install/$dir_prefix/$dir_datadir/applications/$name.desktop"
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

38
satellites/unetbootin.sat

@ -0,0 +1,38 @@
import 'compile/qt'
name=unetbootin
version=625
update_url='https://unetbootin.github.io/linux_download.html'
dlextract "http://launchpad.net/$name/trunk/625/+download/$name-source-$version.tar.gz" \
'fa7bc1aa37d04ad7f85ea85e5dbf68cc'
header_end
# Allow custom CFLAGS
cat >> unetbootin.pro << EOF
QMAKE_CXXFLAGS += \$\$(CXXFLAGS)
QMAKE_CFLAGS += \$\$(CFLAGS)
QMAKE_LFLAGS += \$\$(LDFLAGS)
EOF
$(compile_qt_get_cmd lupdate 4) unetbootin.pro
$(compile_qt_get_cmd lrelease 4) unetbootin.pro
compile_qt 4
# Install the program
install -Dm755 "$name" "$dir_install/$dir_prefix/$dir_bindir/$name"
# Install the translations
install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/$name" "$name"_*.qm
# Fix the desktop file
sed -i -e "/Exec=/cExec=$name" "$name.desktop"
# Install the desktop file and icons
install -Dm644 "$name.desktop" "$dir_install/$dir_prefix/$dir_datadir/applications/$name.desktop"
for x in 16 22 24 32 48 64 128 192 256 512; do
install -Dm644 "${name}_$x.png" "$dir_install/$dir_prefix/$dir_datadir/icons/hicolor/${x}x$x/apps/$name.png"
done
install -Dm644 "${name}_icons.svg" "$dir_install/$dir_prefix/$dir_datadir/icons/scalable/apps/$name.svg"
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:

2
satellites/volumeicon.sat

@ -10,6 +10,6 @@ header_end
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:

20
satellites/zim.sat

@ -0,0 +1,20 @@
import 'compile/python'
name=zim
version=0.65
update_url='http://zim-wiki.org/downloads/'
dlextract "http://zim-wiki.org/downloads/$name-$version.tar.gz" \
'63ab7a2070e6d1d3fb32700a851d7b8b'
header_end
cd "$name-$version"
# Shitty method to fix setup.py for paths
safe_datadir="$(safe_sed "$dir_datadir")"
sed -i -e "s/share/$safe_datadir/g" setup.py
sed -i -e "s/$safe_datadir\/man/$(safe_sed "$dir_mandir")/g" setup.py
compile_python 2 --skip-xdg-cmd
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:
Loading…
Cancel
Save