Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
4c4f429
update to 4.x
shouhuanxiaoji Dec 17, 2017
7f9af39
Update qBittorrent.yml
shouhuanxiaoji Dec 17, 2017
17d1de7
Update pkg2appimage
shouhuanxiaoji Dec 18, 2017
d976f88
Update qBittorrent.yml
shouhuanxiaoji Dec 18, 2017
8f7aae0
Update 0ad.yml
shouhuanxiaoji Dec 19, 2017
89d65cd
Update pkg2appimage
shouhuanxiaoji Dec 19, 2017
2fe8748
Update pkg2appimage
shouhuanxiaoji Dec 19, 2017
7ceb3fd
Update 0ad.yml
shouhuanxiaoji Dec 21, 2017
22ca83c
Update 0ad.yml
shouhuanxiaoji Dec 21, 2017
eea2fc6
Update 0ad.yml
shouhuanxiaoji Dec 21, 2017
bd82775
Update 0ad.yml
shouhuanxiaoji Dec 21, 2017
f97b5bc
Update 0ad.yml
shouhuanxiaoji Dec 21, 2017
9330fcd
Update 0ad.yml
shouhuanxiaoji Dec 21, 2017
dc896f0
Update 0ad.yml
shouhuanxiaoji Dec 21, 2017
b2c8c73
Update 0ad.yml
shouhuanxiaoji Dec 21, 2017
df6de5b
Update 0ad.yml
shouhuanxiaoji Dec 21, 2017
b9dd3e7
Update 0ad.yml
shouhuanxiaoji Dec 21, 2017
deab1af
Update 0ad.yml
shouhuanxiaoji Dec 21, 2017
64e198e
Update 0ad.yml
shouhuanxiaoji Dec 21, 2017
933e11f
Update pkg2appimage
shouhuanxiaoji Dec 22, 2017
00fa6ed
Update 0ad.yml
shouhuanxiaoji Dec 22, 2017
eedf1d8
fix0ad
shouhuanxiaoji Dec 22, 2017
03da438
Update 0ad.yml
shouhuanxiaoji Dec 22, 2017
113f081
add OpenTTD
shouhuanxiaoji Dec 23, 2017
e9bb4a3
Merge pull request #1 from Gamuxorg/openttd
shouhuanxiaoji Dec 23, 2017
fb21dc9
Delete OpenTTD
shouhuanxiaoji Dec 23, 2017
7a4b102
Create OpenTTD.yml
shouhuanxiaoji Dec 23, 2017
21e9625
Update OpenTTD.yml
shouhuanxiaoji Dec 23, 2017
834e6bd
Create Tales-of-MajEyal.yml
shouhuanxiaoji Dec 24, 2017
1bf0156
Update Tales-of-MajEyal.yml
shouhuanxiaoji Dec 24, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions YML.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ This downloads the payload application, JabRef, and the required JRE which requi

The script could also be used to fetch pre-built Debian packages from a GitHub release page, or to override the version of a package.

Use `post_script` instead of `script` if you need this to run _after_ the other ingredient processing has taken place.

### Script section

Expand Down
5 changes: 5 additions & 0 deletions pkg2appimage
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ if [ ! -z "${_ingredients_dist}" ] ; then
$dltool -c -i- <<<"$URLS"
fi

if [ ! -z "${_ingredients_post_script[0]}" ] ; then
# Execute extra steps defined in recipe
shell_execute $YAMLFILE _ingredients_post_script
fi

mkdir -p ./$APP.AppDir/
cd ./$APP.AppDir/

Expand Down
7 changes: 6 additions & 1 deletion recipes/0ad.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ app: 0ad
ingredients:
dist: trusty
sources:
- deb http://ftp.fau.de/ubuntu/ trusty main universe
- deb http://cn.archive.ubuntu.com/ubuntu/ trusty main universe
ppas:
- wfg/0ad


script:
- find usr/lib/games/0ad/ -type f -iname '*.so.*' -exec mv {} usr/lib/ \;
- mv usr/games/* usr/bin/
- mkdir -p usr/bin/share
- mv usr/share/games usr/bin/share
- sed -i -e 's#/usr#././#g' usr/bin/pyrogenesis
- sed -i '1a HERE=$(cd "$(dirname "$0")";pwd) && cd $HERE' usr/bin/0ad
- ln -s usr/lib/x86_64-linux-gnu/libmozjs-38.so.0.0.0 usr/lib/x86_64-linux-gnu/libjs.so.0
54 changes: 54 additions & 0 deletions recipes/FreeCAD-asm3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
app: FreeCAD-asm3
binpatch: true

ingredients:
dist: trusty
sources:
- deb http://archive.ubuntu.com/ubuntu/ trusty main universe
ppas:
- freecad-maintainers/freecad-daily
packages:
- freecad-daily
# - calculix-ccx
- appmenu-qt
pretend:
- libfontconfig1 2.11.0-0ubuntu4
script:
- rm -f freecad-daily*amd64.deb
# try to restore the original package to prevent repeated download
- ! test -f tmp/freecad-daily*.deb || mv tmp/freecad-daily*.deb .
post_script:
- mkdir -p tmp
# save the original package for future redo
- mv freecad-daily*.deb tmp/
# replace the freecad deb package with our custom build
- cp $HOME/pbuilder/trusty_result/freecad-daily*amd64.deb .

script:
# install asm3
- dir=$PWD
- cd ./usr/lib/freecad-daily/Ext/freecad
- rm -rf asm3
- git clone https://github.com/realthunder/FreeCAD_assembly3.git asm3
- cd asm3
- git submodule update --init py_slvs
# generate version as asm3-<asm3 last commit hash>-<last commit date>
- gitdate=`date -d "$(git show -s --format=%aI)" +%Y%m%d%H%M`
- debdate=`date -r $dir/../freecad-daily*.deb +%Y%m%d%H%M`
- [ $debdate -lt $gitdate ] || gitdate=$debdate
- echo "asm3-$(git show -s --format=%h)-$gitdate" > $dir/../VERSION
- rm -rf `find -name '.git*'`
- cd $dir
# resume setup just like FreeCAD-nightly
- cp ./usr/share/applications/freecad-daily.desktop .
- ln -s freecad-daily.desktop freecad-asm3.desktop
- sed -i -e 's@FreeCAD Daily@FreeCAD@g' freecad-daily.desktop
- sed -i -e 's@/usr/bin/@@g' freecad-daily.desktop
- sed -i -e 's@Path=@# Path=@g' freecad-daily.desktop
# - sed -i -e 's@Icon=freecad@Icon=freecad-daily@g' freecad-daily.desktop
- cp ./usr/share/icons/hicolor/64x64/apps/freecad-daily.png .
- # Dear upstream developers, please use relative rather than absolute paths
- # then binary patching like this will become unneccessary
- find usr/ -type f -exec sed -i -e "s@/usr/lib/freecad-daily@././/lib/freecad-daily@g" {} \;
- find usr/ -type f -exec sed -i -e "s@/usr/share/freecad-daily@././/share/freecad-daily@g" {} \;
- ( cd ./usr/lib/freecad-daily/ ; ln -s ../../share/ . ) # Why?
2 changes: 2 additions & 0 deletions recipes/FreeCAD-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ script:
- sed -i -e 's@Path=@# Path=@g' freecad-daily.desktop
# - sed -i -e 's@Icon=freecad@Icon=freecad-daily@g' freecad-daily.desktop
- cp ./usr/share/icons/hicolor/64x64/apps/freecad-daily.png .
- mv ./usr/lib/lapack/*.so* ./usr/lib/
- mv ./usr/lib/libblas/*.so* ./usr/lib/
- # Dear upstream developers, please use relative rather than absolute paths
- # then binary patching like this will become unneccessary
- find usr/ -type f -exec sed -i -e "s@/usr/lib/freecad-daily@././/lib/freecad-daily@g" {} \;
Expand Down
38 changes: 38 additions & 0 deletions recipes/OpenTTD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
app: openttd

ingredients:
script:
- #please modify the version of openttd if it will be updated by up-stream!
- DLD='http://binaries.openttd.org/releases/1.7.1/openttd-1.7.1-linux-generic-amd64.tar.gz'
- wget -c $DLD
- wget -c 'http://binaries.openttd.org/extra/opengfx/0.5.2/opengfx-0.5.2-all.zip'
- wget -c 'http://binaries.openttd.org/extra/opensfx/0.2.3/opensfx-0.2.3-all.zip'
- wget -c 'http://binaries.openttd.org/extra/openmsx/0.3.1/openmsx-0.3.1-all.zip'
- echo $DLD | cut -d '-' -f2 > VERSION
- tar -zxvf openttd*tar.gz
- find . -name '*.zip' -exec unzip {} \;
- find -maxdepth 1 -name "*.tar" | xargs -i tar xvf {} ;
- find -maxdepth 2 -name "*.txt" -exec rm {} \;


script:
- cp -r ../openttd-*/* usr/bin/
- cp -r ../opengfx-*/* ../opensfx-*/* ../openmsx-*/* usr/bin/baseset/
- find . -name openttd.128.png -exec cp {} openttd.png \;
- cat > usr/bin/OpenTTD <<"EOF"
- #!/bin/bash
- HERE=$(cd "$(dirname "$0")";pwd)
- cd "$HERE"
- "$HERE/openttd" "$@"
- EOF
- chmod +x usr/bin/OpenTTD
- cat > openttd.desktop <<EOF
- [Desktop Entry]
- Type=Application
- Name=OpenTTD
- Icon=openttd
- Exec=OpenTTD
- Categories=Game;
- Comment=an open source fork for game Transport Tycoon Deluxe.
- EOF

37 changes: 37 additions & 0 deletions recipes/Tales-of-MajEyal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
app: Tales-of-MajEyal

ingredients:
script:
- #please modify the game version if it well be updated by up-stream!
- DLD='https://te4.org/do-download/tome-1.5.5/t-engine4-linux64-1.5.5.tar.bz2'
- wget -c $DLD
- echo $DLD | cut -d '/' -f5 | cut -d '-' -f2 > VERSION
- tar -jxvf t-engine4-*.tar.bz2


script:
- cp -r ../t-engine4-*/* usr/bin/
- wget -c 'https://te4.org/images/awards/voratun_donator.png' -O 'tales-of-majeyal.png'
- ln -s "/tmp/tmp.tales-of-majeyal.te4_log_web.txt" "usr/bin/te4_log_web.txt"
- cat > usr/bin/tales-of-majeyal <<"EOF"
- #!/bin/bash
- HERE=$(cd "$(dirname "$0")";pwd)
- cd "$HERE"
- if [ ! -f "$HOME/.t-engine/te4_log_web.txt" ];then
- mkdir -p "$HOME/.t-engine/"
- touch "$HOME/.t-engine/te4_log_web.txt"
- ln -s "$HOME/.t-engine/te4_log_web.txt" "/tmp/tmp.tales-of-majeyal.te4_log_web.txt"
- fi
- "$HERE/t-engine" "$@"
- rm "/tmp/tmp.tales-of-majeyal.te4_log_web.txt"
- EOF
- chmod +x usr/bin/tales-of-majeyal
- cat > tales-of-majeyal.desktop <<EOF
- [Desktop Entry]
- Type=Application
- Name=Tales of MajEyal
- Icon=tales-of-majeyal
- Exec=tales-of-majeyal
- Categories=Game;
- Comment=An Open Source Roguelike game
- EOF