mid-kid
8 years ago
35 changed files with 582 additions and 72 deletions
@ -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: |
@ -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,0 +1,8 @@ |
|||||
|
[Desktop Entry] |
||||
|
Type=Application |
||||
|
Name=Teeworlds |
||||
|
Comment=A retro multiplayer shooter |
||||
|
Exec=teeworlds |
||||
|
Icon=teeworlds |
||||
|
Terminal=false |
||||
|
Categories=Game;ArcadeGame; |
@ -1,18 +1,23 @@ |
|||||
import 'compile/configure' |
import 'compile/configure' |
||||
|
|
||||
name=fakeroot |
name=fakeroot |
||||
version=1.21 |
version=1.20.2 |
||||
|
#version=1.21 |
||||
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.bz2" \ |
||||
'be5c9a0e516869fca4a6758105968e5a' |
'a4b4564a75024aa96c86e4d1017ac786' |
||||
|
#dlextract "http://http.debian.net/debian/pool/main/f/$name/${name}_$version.orig.tar.gz" \ |
||||
|
#'be5c9a0e516869fca4a6758105968e5a' |
||||
header_end |
header_end |
||||
|
|
||||
cd "$name-$version/doc" |
cd "$name-$version" |
||||
po4a -k 0 --rm-backups --variable 'srcdir=../doc/' po4a/po4a.cfg |
|
||||
cd .. |
|
||||
|
|
||||
./bootstrap |
#cd doc |
||||
compile_configure --disable-static |
#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: |
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
||||
|
@ -1,4 +1,4 @@ |
|||||
compile_python() { |
compile_python() { |
||||
local ver="$1"; shift |
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 $@ |
||||
} |
} |
||||
|
@ -1,6 +1,23 @@ |
|||||
compile_qt() { |
compile_qt() { |
||||
local ver="$1"; shift |
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 |
||||
make INSTALL_ROOT="$dir_install" install |
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 |
||||
|
} |
||||
|
@ -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 |
|
||||
} |
|
@ -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: |
@ -1,24 +1,53 @@ |
|||||
# TODO: Install shared library, remove static library. |
|
||||
|
|
||||
name=lua |
name=lua |
||||
majver=5.3 |
majver=5.3 |
||||
version=$majver.3 |
version=$majver.3 |
||||
update_url="http://www.lua.org/download.html" |
update_url="http://www.lua.org/download.html" |
||||
|
|
||||
dlextract "http://www.lua.org/ftp/$name-$version.tar.gz" \ |
dlextract "http://www.lua.org/ftp/$name-$version.tar.gz" \ |
||||
"703f75caa4fdf4a911c1a72e67a27498" |
'703f75caa4fdf4a911c1a72e67a27498' |
||||
header_end |
header_end |
||||
|
|
||||
cd "$name-$version" |
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 \ |
make linux \ |
||||
MYLIBS="-lncurses" \ |
MYLIBS="-lncurses" \ |
||||
MYCFLAGS="$CFLAGS" |
MYCFLAGS="$CFLAGS -fPIC" \ |
||||
|
MYLDFLAGS="$LDFLAGS" |
||||
|
|
||||
make install \ |
make install \ |
||||
INSTALL_TOP="$dir_install/$dir_prefix" \ |
INSTALL_TOP="$PWD/install" \ |
||||
INSTALL_BIN="$dir_install/$dir_prefix/$dir_bindir" \ |
INSTALL_BIN="\$(INSTALL_TOP)/$dir_bindir" \ |
||||
INSTALL_LIB="$dir_install/$dir_prefix/$dir_libdir" \ |
INSTALL_LIB="\$(INSTALL_TOP)/$dir_libdir" \ |
||||
INSTALL_MAN="$dir_install/$dir_prefix/$dir_mandir" \ |
INSTALL_MAN="\$(INSTALL_TOP)/$dir_mandir/man1" \ |
||||
INSTALL_CMOD="$dir_install/$dir_prefix/$dir_libdir/$majver" |
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: |
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
||||
|
@ -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: |
@ -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: |
@ -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: |
@ -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: |
@ -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: |
@ -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: |
@ -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: |
@ -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: |
@ -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: |
@ -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: |
@ -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: |
@ -1,42 +1,59 @@ |
|||||
import 'compile/qt5source' |
|
||||
|
|
||||
name=qt5 |
name=qt5 |
||||
|
submodule=base |
||||
majver=5.7 |
majver=5.7 |
||||
version=$majver.0 |
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 |
for opt in $optional_libraries; do |
||||
define_option "$opt: Enable support for $opt." |
define_option "$opt: Enable support for $opt." |
||||
done |
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' |
'184f9460b40752d71b15b827260580c2' |
||||
header_end |
header_end |
||||
|
|
||||
cd "qtbase-opensource-src-$version" |
cd "qt$submodule-opensource-src-$version" |
||||
|
|
||||
# Build using custom CFLAGS, CXXFLAGS and LDFLAGS (Shamelessly stolen from ArchLinux) |
# 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_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_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 |
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="" |
optional="" |
||||
for opt in $optional_libraries; do |
for opt in $optional_libraries; do |
||||
option $opt && optional="$optional -system-$opt" || optional="$optional -no-$opt" |
option $opt && optional="$optional -system-$opt" || optional="$optional -no-$opt" |
||||
done |
done |
||||
|
|
||||
echo "$optional" |
# 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 \ |
||||
# Make sure all the possible libraries are linked from the OS, as Qt might use it's own if they aren't available. |
-prefix "/$dir_prefix" \ |
||||
compile_qt5source \ |
-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-sqlite \ |
||||
-system-zlib \ |
-system-zlib \ |
||||
-system-pcre \ |
-system-pcre \ |
||||
-system-xcb \ |
-system-xcb \ |
||||
-system-xkbcommon-x11 \ |
-system-xkbcommon-x11 \ |
||||
|
-qt-doubleconversion \ |
||||
-openssl-linked \ |
-openssl-linked \ |
||||
-dbus-linked \ |
-dbus-linked \ |
||||
-nomake examples \ |
-nomake examples \ |
||||
$optional |
$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: |
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
||||
|
@ -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: |
@ -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: |
@ -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: |
@ -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: |
@ -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…
Reference in new issue