From a575677898715fda7b5b16a2aa4f5e87a66ee507 Mon Sep 17 00:00:00 2001 From: Vomitblood Date: Mon, 25 Mar 2024 22:48:30 +0800 Subject: [PATCH] mature --- build/arch/PKGBUILD | 4 +++- build/debian/debian.sh | 13 ++++++++----- install.sh | 6 ++++++ src/bin/testing.rs | 3 +++ 4 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 install.sh create mode 100644 src/bin/testing.rs diff --git a/build/arch/PKGBUILD b/build/arch/PKGBUILD index e640421..5d78ca6 100644 --- a/build/arch/PKGBUILD +++ b/build/arch/PKGBUILD @@ -1,7 +1,9 @@ +# Maintainer: Vomitblood + pkgname=rustmon-git pkgdesc="Pokemon Colorscripts written in Rust" _gitname=rustmon -pkgver=r23.ab34e78 +pkgver=r26.2b2a15c pkgrel=1 arch=('x86_64') url="https://github.com/Vomitblood/$_gitname" diff --git a/build/debian/debian.sh b/build/debian/debian.sh index fc312cb..62be15a 100644 --- a/build/debian/debian.sh +++ b/build/debian/debian.sh @@ -1,11 +1,14 @@ #!/bin/sh -# variables +# get the script location +SCRIPT_DIR=$(dirname "$0") + +# Variables PKG_NAME=rustmon -BUILD_DIR=build/debian -RELEASE_DIR=../../target/release -DEBIAN_DIR=$PKG_NAME/DEBIAN -BIN_DIR=$PKG_NAME/usr/bin +BUILD_DIR=$SCRIPT_DIR/build/debian +RELEASE_DIR=$SCRIPT_DIR/../../target/release +DEBIAN_DIR=$BUILD_DIR/$PKG_NAME/DEBIAN +BIN_DIR=$BUILD_DIR/$PKG_NAME/usr/bin AUTO_INSTALL=${1:-"no"} # check for rust diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..235498a --- /dev/null +++ b/install.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# TODO: temp install script for arch + +cd build/arch +makepkg -cfsi \ No newline at end of file diff --git a/src/bin/testing.rs b/src/bin/testing.rs new file mode 100644 index 0000000..6686bd0 --- /dev/null +++ b/src/bin/testing.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!") +}