Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
U
unibuild
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
unibuild
Commits
9f901fd8
Kaydet (Commit)
9f901fd8
authored
Tem 26, 2020
tarafından
sulincix
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fixes
üst
3e6c0a20
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
16 deletions
+28
-16
github
api/github
+8
-0
example
example/example
+10
-12
install.sh
install.sh
+3
-2
directories
modules/directories
+1
-1
readme.rst
readme.rst
+5
-0
appimage
target/appimage
+1
-1
No files found.
api/github
0 → 100644
Dosyayı görüntüle @
9f901fd8
#!/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
}
example/example
Dosyayı görüntüle @
9f901fd8
#!/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
}
install.sh
Dosyayı görüntüle @
9f901fd8
#!/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
modules/directories
Dosyayı görüntüle @
9f901fd8
#!/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
...
...
readme.rst
Dosyayı görüntüle @
9f901fd8
...
...
@@ -13,3 +13,8 @@ for install
===========
DESTDIR=*your_DESTDIR* bash install.sh
Simple usage
============
[TARGET=*your_target*] **unibuild** [*file/url*]
target/appimage
Dosyayı görüntüle @
9f901fd8
...
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment