add cargo-ui package
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
ee7aa1292b
commit
fd09ef320f
9
Makefile
9
Makefile
|
@ -1,3 +1,12 @@
|
|||
.PHONY: cargo-ui
|
||||
|
||||
all:
|
||||
wit mirrors
|
||||
|
||||
cargo-ui:
|
||||
cd cargo-ui && make
|
||||
make all
|
||||
|
||||
help:
|
||||
@echo
|
||||
@echo "# this are just simple shortcuts to package up files on a system once you have it compiled and installed"
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
.PHONY: control
|
||||
|
||||
# ~/tmp/cargo/example/cargo-ui/cargo-ui
|
||||
|
||||
VERSION=20220510.1
|
||||
BASENAME=cargo-ui
|
||||
|
||||
all: clean extract DEBIAN build
|
||||
|
||||
help:
|
||||
@echo
|
||||
@echo "make all # to attempt to download, extract and build the .deb package using dpkg"
|
||||
@echo
|
||||
|
||||
source:
|
||||
git clone https://github.com/slint-ui/cargo-ui.git
|
||||
|
||||
clean:
|
||||
rm -rf ../files
|
||||
rm -f ../*.deb
|
||||
rm -f ../*.tar.xz data.tar.xz
|
||||
rm -rf DEBIAN
|
||||
|
||||
extract:
|
||||
mkdir -p ../files/usr/bin
|
||||
cp ~/tmp/cargo/example/cargo-ui/cargo-ui ../files/usr/bin
|
||||
|
||||
# makes the DEBIAN/ directory
|
||||
DEBIAN:
|
||||
mkdir -p DEBIAN
|
||||
|
||||
# make the md5sum file
|
||||
cd ../files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../md5sums
|
||||
mv ../md5sums DEBIAN/
|
||||
|
||||
# make the control there
|
||||
mkdir -p DEBIAN
|
||||
cp control DEBIAN/
|
||||
echo Version: ${VERSION} >>DEBIAN/control
|
||||
|
||||
cp postinst DEBIAN
|
||||
|
||||
build:
|
||||
mv DEBIAN ../files/
|
||||
cd .. && dpkg-deb --build files ${BASENAME}_${VERSION}_amd64.deb
|
||||
cd .. && dpkg-deb --info ${BASENAME}_${VERSION}_amd64.deb
|
|
@ -0,0 +1 @@
|
|||
10
|
|
@ -0,0 +1,7 @@
|
|||
Source: cargo-ui
|
||||
Build-Depends: rust
|
||||
Package: cargo-ui
|
||||
Maintainer: Jeff Carr <jcarr@wit.com>
|
||||
Architecture: amd64
|
||||
Depends:
|
||||
Description: a rust project to make a GUI for cargo, built using Slint:
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
systemctl daemon-reload
|
||||
useradd -mrU -s /sbin/nologin -d /var/lib/maddy -c "maddy mail server" maddy
|
Loading…
Reference in New Issue