diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-12-09 02:04:48 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-12-09 02:04:48 -0600 |
| commit | f5c356b5f4611eaad8a518a807b7da2b6fcb0b33 (patch) | |
| tree | b866d7cc57601ba470e340a9540e527bd8b91ab9 /init | |
| parent | 4d311dd0ea315d09154cae4d4212f6b14e3ae211 (diff) | |
| download | luasystem-packaging-f5c356b5f4611eaad8a518a807b7da2b6fcb0b33.tar.gz luasystem-packaging-f5c356b5f4611eaad8a518a807b7da2b6fcb0b33.tar.bz2 luasystem-packaging-f5c356b5f4611eaad8a518a807b7da2b6fcb0b33.zip | |
Fix system build
No easy way but to rewrite rockspecs
Also delete the doc/ folder in release builds.
Diffstat (limited to 'init')
| -rwxr-xr-x | init | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -3,11 +3,16 @@ | |||
| 3 | cd luasystem | 3 | cd luasystem |
| 4 | mv rockspecs/* . | 4 | mv rockspecs/* . |
| 5 | luarocks config variables.CFLAGS " $CFLAGS" | 5 | luarocks config variables.CFLAGS " $CFLAGS" |
| 6 | luarocks make --pack-binary-rock luasystem-$packver.rockspec | 6 | #No easy way to fool luarocks into building win32 instead of linux platform-specific stuff |
| 7 | sed -i "s/linux/foobar/g" *.rockspec | ||
| 8 | sed -i "s/win32/linux/g" *.rockspec | ||
| 9 | luarocks make --pack-binary-rock luasystem-$packver.rockspec --verbose | ||
| 7 | obj="luasystem-$packver.$(luarocks config arch).rock" | 10 | obj="luasystem-$packver.$(luarocks config arch).rock" |
| 8 | cp $obj /root | 11 | cp $obj /root |
| 9 | cd /root | 12 | cd /root |
| 10 | if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then | 13 | if [ -z $(echo $CFLAGS | grep -o -E -- '( |^)-g( |$)') ]; then |
| 14 | # Release build, delete docs/ | ||
| 15 | zip -d $obj doc/ doc/* | ||
| 11 | # And pack the library with upx | 16 | # And pack the library with upx |
| 12 | unzip $obj lib/* | 17 | unzip $obj lib/* |
| 13 | upx --no-progress lib/* | 18 | upx --no-progress lib/* |
