diff options
| author | ruki <[email protected]> | 2025-01-04 00:48:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-01-04 00:48:19 +0800 |
| commit | f6478356bcf482fa41b06de19c0e9b257003816a (patch) | |
| tree | a1480ac072ec6b4d8d1d39e79e4d8c05ca15eb8c /scripts/makepkg | |
| parent | 4d83ba45f23988a5b41d9c589258a978c29e28b8 (diff) | |
remove more old specs
Diffstat (limited to 'scripts/makepkg')
| -rwxr-xr-x | scripts/makepkg | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/scripts/makepkg b/scripts/makepkg deleted file mode 100755 index 1aa62079e..000000000 --- a/scripts/makepkg +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env bash - -# install fpm -# -# On OSX/macOS: -# brew install gnu-tar -# -# On Red Hat systems (Fedora 22 or older, CentOS, etc): -# yum install ruby-devel gcc make rpm-build -# -# On Fedora 23 or newer: -# dnf install ruby-devel gcc make rpm-build -# -# On Debian-derived systems (Debian, Ubuntu, etc): -# apt-get install ruby ruby-dev rubygems gcc make -# -# Installing FPM: -# gem install --no-ri --no-rdoc fpm -# - -# check -if [ $# -lt 1 ]; then - echo "Usage: ./scripts/makepkg [rpm|deb|osxpkg|pacman]" - exit -fi -xmakeroot=`pwd` -artifactsdir=$xmakeroot/artifacts -if [ ! -d $artifactsdir ]; then - mkdir $artifactsdir -fi - -# target -target=$1 - -# version -version=`cat ./core/xmake.lua | grep -E "^set_version" | grep -oE "[0-9]*\.[0-9]*\.[0-9]*"` - -# arch -arch=i386 -if [ `getconf LONG_BIT` == "64" ]; then - arch=x86_64 -fi - -# platform -plat=linux -if [ `uname` == "Darwin" ]; then - plat=macosx -fi - -# build first -./configure -make - -# make dep package using fpm -fpm -s dir -t $target -n xmake -v $version -m "<[email protected]>" --description "A cross-platform build utility based on Lua" --url "xmake.io" --license Apache \ - xmake=/usr/local/share/ \ - build/xmake=/usr/local/bin/xmake \ - scripts/xrepo.sh=/usr/local/bin/xrepo -if [ "$target" == "osxpkg" ]; then - mv "xmake-$version.pkg" "$artifactsdir/xmake.pkg" -elif [ "$target" == "deb" ]; then - mv "xmake_${version}_amd64.deb" "$artifactsdir/xmake.deb" -fi - - |
