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
bd9b98ed
Kaydet (Commit)
bd9b98ed
authored
Tem 18, 2020
tarafından
sulincix
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
debian package support
üst
e27f3257
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
0 deletions
+52
-0
example
example/example
+1
-0
autotarget
modules/autotarget
+12
-0
debian
target/debian
+39
-0
No files found.
example/example
Dosyayı görüntüle @
bd9b98ed
...
@@ -3,6 +3,7 @@ name="example"
...
@@ -3,6 +3,7 @@ name="example"
version
=
"1.0"
version
=
"1.0"
summary
=
"example package"
summary
=
"example package"
description
=
"example package for build test"
description
=
"example package for build test"
depends
=(
"hello"
)
license
=
"gplv3"
license
=
"gplv3"
release
=
"1"
release
=
"1"
#source=(http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz)
#source=(http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz)
...
...
modules/autotarget
Dosyayı görüntüle @
bd9b98ed
...
@@ -6,3 +6,15 @@ if [ "$TARGET" == "" ] ; then
...
@@ -6,3 +6,15 @@ if [ "$TARGET" == "" ] ; then
export
TARGET
=
inary
export
TARGET
=
inary
fi
fi
fi
fi
if
[
"
$TARGET
"
==
"debian"
]
;
then
if
[
"
$arch
"
==
""
]
;
then
[
"
$(
uname
-m
)
"
==
"x86_64"
]
&&
export arch
=
"amd64"
[
"
$(
uname
-m
)
"
==
"i686"
]
&&
export arch
=
"i386"
[
"
$(
uname
-m
)
"
==
"aarch64"
]
&&
export arch
=
"arm64"
[
"
$(
uname
-m
)
"
==
"armhf"
]
&&
export arch
=
"arm"
fi
elif
[
"
$TARGET
"
==
"inary"
]
;
then
if
[
"
$arch
"
==
""
]
;
then
export arch
=
"
$(
uname
-m
)
"
fi
fi
target/debian
0 → 100644
Dosyayı görüntüle @
bd9b98ed
#!/bin/bash
_write_metadata
(){
echo
-e
"Package:
$name
"
echo
-e
"Source:
$source
"
echo
-e
"Version:
$version
"
echo
-e
"Architecture:
$arch
"
echo
-e
"Maintainer:
$maintainer
<
$email
>"
echo
-e
"Installed-Size: 1"
echo
-ne
"Depends: "
for
dep
in
${
depends
[@]
:0:
${#
depends
[@]
}
-1
}
do
echo
-ne
"
$dep
,"
done
echo
-e
"
${
depends
[@]
:-
1
}
"
echo
-e
"Section:
$partof
"
echo
-e
"Homepage:
$homepage
"
echo
-e
"Description:
$description
"
}
_create_metadata
(){
mkdir
-p
$PKGDIR
/DEBIAN
_write_metadata
>
$PKGDIR
/DEBIAN/control
cd
$INSTALLDIR
touch
$PKGDIR
/DEBIAN/md5sums
find
.
|
while
read
line
do
[
-f
$line
]
&&
md5sum
$line
|
sed
"s|^
\.
/||g"
>>
$PKGDIR
/DEBIAN/md5sums
done
}
_package
(){
cd
$INSTALLDIR
tar
--gzip
-cvf
$PKGDIR
/data.tar.gz ./
*
cd
$PKGDIR
/DEBIAN
tar
--gzip
-cvf
$PKGDIR
/control.tar.gz
*
echo
"2.0"
>
$PKGDIR
/debian-binary
cd
$PKGDIR
ar r
"
$CURDIR
/
${
name
}
_
${
arch
}
_
${
version
}
.deb"
debian-binary control.tar.gz data.tar.gz
}
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