makedeb
Cosmos is an operating system "construction kit".
Click here to go back to the commit logs for cosmos-git.
Hash: b15aa183ea81f4a53267e90a2c3dc9fb2d14aef1
Message: stable
diff --git a/.SRCINFO b/.SRCINFO
index dfb75e1..737eb0a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@ pkgname = cosmos-git
pkgbase = cosmos-git
pkgdesc = Cosmos is an operating system "construction kit".
pkgrel = 1
-pkgver = 1.0.0
+pkgver = 1.0.r1.efe06bf
url = https://github.com/CosmosOS/Cosmos
arch = any
depends = bash
diff --git a/PKGBUILD b/PKGBUILD
index a4dfb51..c748e5d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: zarlo <mpr+5899@zarlo.dev>
pkgname=cosmos-git
-pkgver=1.0.0
+pkgver=1.0.r1.efe06bf
pkgrel=1
url='https://github.com/CosmosOS/Cosmos'
pkgdesc='Cosmos is an operating system "construction kit".'
@@ -17,11 +17,20 @@ source=(
)
sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP')
+pkgver() {
+ printf "1.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd Cosmos
+ make build
+ make publish
+}
+
package() {
- export MSBUILDDISABLENODEREUSE=1
- mkdir -p "${pkgdir}/opt/cosmos"
cd Cosmos
- make build DESTDIR="${pkgdir}/opt/cosmos"
- make install DESTDIR="${pkgdir}/opt/cosmos"
- install -D -m755 cosmos-git -t "${pkgdir}/opt/cosmos"
+ echo "${PWD}"
+
+ sed -i '108d' Makefile # remove @echo $(DESTDIR) > /etc/CosmosUserKit.cfg
+ DESTDIR="${pkgdir}/opt/cosmos" make install
}