mid-kid
8 years ago
28 changed files with 352 additions and 38 deletions
@ -0,0 +1,13 @@ |
|||
import 'compile/cmake' |
|||
import 'vcs/git' |
|||
|
|||
name=3dstool |
|||
|
|||
vcs_git "https://github.com/dnasdw/$name" |
|||
header_end |
|||
|
|||
cd "$name" |
|||
compile_cmake -I |
|||
install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" "bin/Release/$name" |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
@ -0,0 +1,16 @@ |
|||
import 'compile/cmake' |
|||
|
|||
name=3dstool |
|||
version=1.0.15 |
|||
update_url="https://github.com/dnasdw/$name/releases" |
|||
update_names="/archive/v$version.tar.gz" |
|||
|
|||
dlextract "https://github.com/dnasdw/$name/archive/v$version.tar.gz" \ |
|||
'cfba027c749b4b600dae36f508f0af48' |
|||
header_end |
|||
|
|||
cd "$name-$version" |
|||
compile_cmake -I |
|||
install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" "bin/Release/$name" |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
@ -1,23 +1,20 @@ |
|||
import 'compile/configure' |
|||
|
|||
name=fakeroot |
|||
version=1.20.2 |
|||
#version=1.21 |
|||
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.bz2" \ |
|||
'a4b4564a75024aa96c86e4d1017ac786' |
|||
#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.gz" \ |
|||
'be5c9a0e516869fca4a6758105968e5a' |
|||
header_end |
|||
|
|||
cd "$name-$version" |
|||
|
|||
#cd doc |
|||
#po4a -k 0 --rm-backups --variable 'srcdir=../doc/' po4a/po4a.cfg |
|||
#cd .. |
|||
cd doc |
|||
po4a -k 0 --rm-backups --variable 'srcdir=../doc/' po4a/po4a.cfg |
|||
cd .. |
|||
|
|||
#./bootstrap |
|||
./bootstrap |
|||
compile_configure -- --disable-static |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
|||
|
@ -0,0 +1,25 @@ |
|||
name=ffmpeg |
|||
version=3.1.2 |
|||
update_url='https://ffmpeg.org/download.html' |
|||
|
|||
dlextract "http://ffmpeg.org/releases/$name-$version.tar.bz2" \ |
|||
'8095acdc8d5428b2a9861cb82187ea73' |
|||
header_end |
|||
|
|||
cd "$name-$version" |
|||
|
|||
# ffmpeg uses it's own configure script with arguably differing options to the |
|||
# regular GNU autotools configure scripts. |
|||
# Not using compile_configure due to that. |
|||
./configure --disable-static --enable-shared \ |
|||
--prefix="/$dir_prefix" \ |
|||
--bindir="/$dir_prefix/$dir_bindir" \ |
|||
--libdir="/$dir_prefix/$dir_libdir" \ |
|||
--datadir="/$dir_prefix/$dir_datadir/$name" \ |
|||
--mandir="/$dir_prefix/$dir_mandir" \ |
|||
--docdir="/$dir_prefix/$dir_docdir/$name" |
|||
|
|||
make |
|||
make DESTDIR="$dir_install" install |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
@ -0,0 +1,21 @@ |
|||
compile_perl() { |
|||
local noinstall=false |
|||
|
|||
local OPTIND=1 |
|||
local opt |
|||
while getopts "I" opt; do case "$opt" in |
|||
I) local noinstall=true ;; |
|||
esac; done |
|||
shift $((OPTIND-1)) |
|||
|
|||
perl Build.PL --create_packlist=0 \ |
|||
--prefix="/$dir_prefix" \ |
|||
--destdir="$dir_install" \ |
|||
--installdirs vendor \ |
|||
--install_path script="/$dir_prefix/$dir_bindir" \ |
|||
--install_path bin="/$dir_prefix/$dir_bindir" \ |
|||
--install_path bindoc="/$dir_prefix/$dir_mandir/man1" \ |
|||
--install_path libdoc="/$dir_prefix/$dir_mandir/man3" |
|||
./Build |
|||
[ "$noinstall" = false ] && ./Build install || true |
|||
} |
@ -0,0 +1,17 @@ |
|||
compile_waf() { |
|||
local binary='waf' |
|||
|
|||
local OPTIND=1 |
|||
local opt |
|||
while getopts "b:" opt; do case "$opt" in |
|||
b) local binary="$OPTARG" ;; |
|||
esac; done |
|||
shift $((OPTIND-1)) |
|||
|
|||
$binary configure build install \ |
|||
--prefix="/$dir_prefix" \ |
|||
--bindir="/$dir_prefix/$dir_bindir" \ |
|||
--libdir="/$dir_prefix/$dir_libdir" \ |
|||
--destdir="$dir_install" \ |
|||
$WAFFLAGS $@ |
|||
} |
@ -0,0 +1,25 @@ |
|||
import 'compile/configure' |
|||
|
|||
name=giblib |
|||
majver=1.2.4 |
|||
version=$majver-11 |
|||
update_url="https://packages.debian.org/sid/${name}1" |
|||
update_names="${name}_$version.debian.tar.xz" |
|||
|
|||
dlextract "http://http.debian.net/debian/pool/main/g/$name/${name}_$majver.orig.tar.gz" \ |
|||
'598711e2cb631c59f6ad11cba4383f2c' |
|||
dlextract "http://http.debian.net/debian/pool/main/g/$name/${name}_$version.debian.tar.xz" \ |
|||
'85d5fb2f8a78d23b3a7929f3f8828f44' |
|||
header_end |
|||
|
|||
cd "$name-$majver.orig" |
|||
|
|||
# Updating with debian patches as appropiate |
|||
for x in $(cat ../debian/patches/series); do |
|||
patch -p1 -i ../debian/patches/$x |
|||
done |
|||
|
|||
autoreconf -i |
|||
compile_configure |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
@ -0,0 +1,15 @@ |
|||
import 'compile/configure' |
|||
|
|||
name=gtksourceview |
|||
majver=2.10 |
|||
version=$majver.5 # I'm not sure why, but everybody seems to use this version. |
|||
update_url="https://download.gnome.org/sources/$name/cache.json" |
|||
|
|||
dlextract "https://download.gnome.org/sources/$name/$majver/$name-$version.tar.bz2" \ |
|||
'1219ad1694df136f126507466aeb41aa' |
|||
header_end |
|||
|
|||
cd "$name-$version" |
|||
compile_configure |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
@ -0,0 +1,14 @@ |
|||
import 'compile/configure' |
|||
|
|||
name=imlib2 |
|||
version=1.4.9 |
|||
update_url="https://sourceforge.net/projects/enlightenment/files/$name-src/" |
|||
|
|||
dlextract "https://sourceforge.net/projects/enlightenment/files/$name-src/$version/$name-$version.tar.bz2" \ |
|||
'23ef8b49f2793bc63b16839a2062298b' |
|||
header_end |
|||
|
|||
cd "$name-$version" |
|||
compile_configure |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
@ -0,0 +1,14 @@ |
|||
import 'compile/configure' |
|||
|
|||
name=libass |
|||
version=0.13.2 |
|||
update_url="https://github.com/libass/$name/releases" |
|||
|
|||
dlextract "https://github.com/libass/$name/releases/download/$version/$name-$version.tar.xz" \ |
|||
'1c8cbd5751aeb192bda04a65d0464fd9' |
|||
header_end |
|||
|
|||
cd "$name-$version" |
|||
compile_configure -- --disable-static |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
@ -0,0 +1,14 @@ |
|||
import 'compile/waf' |
|||
|
|||
name=mpv |
|||
version=0.19.0 |
|||
update_url="https://github.com/mpv-player/$name/releases" |
|||
|
|||
dlextract "https://github.com/mpv-player/$name/archive/v$version.tar.gz" \ |
|||
'fa91789d030b93388543a8afef4352b1' |
|||
header_end |
|||
|
|||
cd "$name-$version" |
|||
compile_waf |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
@ -0,0 +1,19 @@ |
|||
name=ninja |
|||
version=1.7.1 |
|||
update_url="https://github.com/ninja-build/$name/releases" |
|||
|
|||
dlextract "https://github.com/ninja-build/$name/archive/v$version.tar.gz" \ |
|||
'e45bda009319f9af5385bb79e783da9f' |
|||
header_end |
|||
|
|||
cd "$name-$version" |
|||
|
|||
./configure.py --bootstrap |
|||
|
|||
install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" "$name" |
|||
install -Dm644 misc/bash-completion "$dir_install/$dir_prefix/$dir_datadir/bash-completion/completions/$name" |
|||
install -Dm644 misc/zsh-completion "$dir_install/$dir_prefix/$dir_datadir/zsh/site-functions/_$name" |
|||
install -Dm644 misc/ninja.vim "$dir_install/$dir_prefix/$dir_datadir/vim/vimfiles/syntax/$name.vim" |
|||
# Not installing emacs stuff because I have no idea how it works |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
@ -0,0 +1,14 @@ |
|||
import 'compile/perl' |
|||
|
|||
name=Module-Build |
|||
version=0.4220 |
|||
update_url='http://www.cpan.org/authors/id/L/LE/LEONT/' |
|||
|
|||
dlextract "http://www.cpan.org/authors/id/L/LE/LEONT/$name-$version.tar.gz" \ |
|||
'9df204e188462a4410d496f316c2c531' |
|||
header_end |
|||
|
|||
cd "$name-$version" |
|||
compile_perl |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
@ -0,0 +1,22 @@ |
|||
import 'compile/perl' |
|||
|
|||
name=po4a |
|||
version=0.48 |
|||
update_url='https://alioth.debian.org/frs/?group_id=30267' |
|||
|
|||
dlextract "https://alioth.debian.org/frs/download.php/latestfile/195/$name-$version.tar.gz" \ |
|||
'5c8fa9b6a23586d3860d0767bed65148' |
|||
header_end |
|||
|
|||
cd "$name-$version" |
|||
compile_perl -I |
|||
|
|||
# Install the manages manually, to put them in the correct dir (Perl won't listen otherwise) |
|||
mkdir -p "$dir_install/$dir_prefix/$dir_mandir" |
|||
mv blib/man/* "$dir_install/$dir_prefix/$dir_mandir" |
|||
rmdir blib/man |
|||
|
|||
# Install the rest |
|||
./Build install |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
@ -0,0 +1,15 @@ |
|||
import 'compile/configure' |
|||
|
|||
name=pygtksourceview |
|||
majver=2.10 |
|||
version=$majver.1 |
|||
update_url="https://download.gnome.org/sources/$name/cache.json" |
|||
|
|||
dlextract "https://download.gnome.org/sources/$name/$majver/$name-$version.tar.bz2" \ |
|||
'2654354d61422fb79d8375fc3a3b5393' |
|||
header_end |
|||
|
|||
cd "$name-$version" |
|||
compile_configure |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
@ -1,14 +1,24 @@ |
|||
import 'compile/configure' |
|||
|
|||
name=qemu |
|||
version=2.6.0 |
|||
version=2.6.1 |
|||
update_url='http://wiki.qemu.org/Download' |
|||
|
|||
define_option 'targets=all: Define what targets to build (space-separated list)' |
|||
|
|||
dlextract "http://wiki.qemu-project.org/download/$name-$version.tar.bz2" \ |
|||
'ca3f70b43f093e33e9e014f144067f13' |
|||
'6a183b192018192943b6781e1bb9b72f' |
|||
header_end |
|||
|
|||
cd "$name-$version" |
|||
compile_configure -- --target-list=i386-softmmu |
|||
|
|||
targets="$(option =targets)" |
|||
if [ "$targets" = "all" ]; then |
|||
targets="" |
|||
else |
|||
targets="--target-list=$(echo "$targets" | sed -e 's/ /,/g')" |
|||
fi |
|||
|
|||
compile_configure -- $targets |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
|||
|
@ -0,0 +1,24 @@ |
|||
import 'compile/configure' |
|||
|
|||
name=scrot |
|||
majver=0.8 |
|||
version=$majver-17 |
|||
update_url="https://packages.debian.org/sid/$name" |
|||
update_names="${name}_$version.debian.tar.xz" |
|||
|
|||
dlextract "http://http.debian.net/debian/pool/main/s/$name/${name}_$majver.orig.tar.gz" \ |
|||
'ccae904d225609571bdd3b03445c1e88' |
|||
dlextract "http://http.debian.net/debian/pool/main/s/$name/${name}_$version.debian.tar.xz" \ |
|||
'7d6a067f67586623c72a7c83076af842' |
|||
header_end |
|||
|
|||
cd "$name-$majver" |
|||
|
|||
for x in $(cat ../debian/patches/series); do |
|||
patch -p1 -i ../debian/patches/$x |
|||
done |
|||
|
|||
autoreconf -i |
|||
compile_configure |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
@ -0,0 +1,35 @@ |
|||
import 'compile/waf' |
|||
|
|||
name=waf |
|||
version=1.9.3 |
|||
update_url='https://waf.io/' |
|||
|
|||
dlextract "https://waf.io/$name-$version.tar.bz2" \ |
|||
'038f5661d423a45ccce9169b186b3518' |
|||
header_end |
|||
|
|||
cd "$name-$version" |
|||
compile_waf -b "python3 ./$name-light" -- --make-waf |
|||
|
|||
# Strip packed library from binary. The plain files are installed separately. |
|||
sed -i -e '/^#==>$/,/^#<==$/d' "$name" |
|||
|
|||
# Strip revision from the libdir name |
|||
sed -i -e '/dirname =/s/%s-%s-%s/%s-%s/' \ |
|||
-e '/dirname =/s/, REVISION//' "$name" |
|||
|
|||
# Change the logic of checking dirs to find waflib to only check one dir, the dir where we installed it. |
|||
sed -i -e "s/INSTALL,'\/usr','\/usr\/local','\/opt'/'$(safe_sed "/$dir_prefix")',/" \ |
|||
-e "s/'\/lib\/'/'$(safe_sed "/$dir_libdir/")'/" "$name" |
|||
|
|||
# Fix the shebang to point to python3 |
|||
sed -i -e '1s/python/python3/' "$name" |
|||
|
|||
install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" "$name" |
|||
|
|||
wafdir="$dir_install/$dir_prefix/$dir_libdir/${name}3-$version" |
|||
install -d "$wafdir" |
|||
unzip -od "$wafdir" zip/waflib.zip |
|||
python3 -OOm compileall "$wafdir" |
|||
|
|||
# vim:set tabstop=4 shiftwidth=4 syntax=sh et: |
Loading…
Reference in new issue