Kaydet (Commit) 9f901fd8 authored tarafından sulincix's avatar sulincix

fixes

üst 3e6c0a20
#!/bin/bash
github(){
user=$1
project=$2
version=$(curl https://github.com/$user/$project/releases | grep "/.*..tar.gz" | sed "s/.*href=\"//g" | sed "s/\".*//g" | grep "^/" | head -n 1)
echo https://github.com$version
}
#!/bin/bash
name="example"
name="unibuild"
version="1.0"
summary="example package"
executable="hello"
description="example package for build test"
builddepends=("gcc")
depends=("hello" "cc" "aa")
summary="Universal builder"
executable="unibuild"
description="The universal build system for posix"
builddepends=("bash")
depends=("curl" "wget" "bash")
license="gplv3"
release="1"
#source=(http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz)
source=(git+https://gitlab.com/sulinos/devel/unibuild)
_setup(){
mkdir -p ./bin/
echo "echo hello world" > ./bin/hello
export WORKDIR=$WORKDIR/unibuild
}
_build(){
chmod +x ./bin/hello
chmod +x ./install.sh
}
_install(){
mkdir -p $INSTALLDIR/bin/
install ./bin/hello $INSTALLDIR/bin/hello
DESTDIR=$INSTALLDIR ./install.sh
}
#!/bin/bash
mkdir -p $DESTDIR/usr/lib/unibuild
mkdir -p $DESTDIR/usr/lib/unibuild || true
mkdir -p $DESTDIR/usr/bin || true
[ -f unibuild.sh ] && cp -prfv * $DESTDIR/usr/lib/unibuild
rm -f $DESTDIR/usr/lib/unibuild/build.sh
chmod +x -R $DESTDIR/usr/lib/unibuild/*
ln -s $DESTDIR/usr/lib/unibuild/unibuild.sh /usr/bin/unibuild
ln -s $DESTDIR/usr/lib/unibuild/unibuild.sh /usr/bin/unibuild || true
#!/bin/bash
export CURDIR=$(pwd)
export BUILDDIR=/tmp/unibuild
export BUILDDIR=$(mktemp -d)
export WORKDIR=$BUILDDIR/work
export INSTALLDIR=$BUILDDIR/install
export PKGDIR=$BUILDDIR/package
......
......@@ -13,3 +13,8 @@ for install
===========
DESTDIR=*your_DESTDIR* bash install.sh
Simple usage
============
[TARGET=*your_target*] **unibuild** [*file/url*]
......@@ -61,7 +61,7 @@ _package(){
chmod +x ~/.appimagekit
fi
cp -prfv $INSTALLDIR/* $PKGDIR/
find $INSTALLDIR | copy_library &> /dev/null || true
[ "${PORTABLE}" == "true" ] && find $INSTALLDIR | copy_library &> /dev/null || true
cd $CURDIR
ARCH=$(uname -m) ~/.appimagekit $PKGDIR
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment