From 31d147b20c67d95a9e306d0749200bf964ac42af Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 29 Oct 2021 01:30:24 +0300 Subject: Use actual files instead of submodules --- dijo-git | 1 - dijo-git/.SRCINFO | 17 +++++++++++++++++ dijo-git/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) delete mode 160000 dijo-git create mode 100644 dijo-git/.SRCINFO create mode 100644 dijo-git/PKGBUILD (limited to 'dijo-git') diff --git a/dijo-git b/dijo-git deleted file mode 160000 index 6c02231..0000000 --- a/dijo-git +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6c022315a768dfde64c9e24d819823b9231f82d1 diff --git a/dijo-git/.SRCINFO b/dijo-git/.SRCINFO new file mode 100644 index 0000000..afe3203 --- /dev/null +++ b/dijo-git/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = dijo-git + pkgdesc = scriptable, curses-based, digital habit tracker + pkgver = 0.2.7.191.gbe6e0e3 + pkgrel = 1 + url = https://github.com/NerdyPepper/dijo + arch = x86_64 + arch = i686 + license = MIT + makedepends = rust + makedepends = cargo + makedepends = git + provides = dijo + conflicts = dijo + source = dijo::git+https://github.com/NerdyPepper/dijo.git + sha256sums = SKIP + +pkgname = dijo-git diff --git a/dijo-git/PKGBUILD b/dijo-git/PKGBUILD new file mode 100644 index 0000000..75931d7 --- /dev/null +++ b/dijo-git/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Yigit Sever +# Contributor: quininer + +pkgname='dijo-git' +_pkgname="dijo" +pkgver=0.2.7.191.gbe6e0e3 +pkgrel=1 +arch=('x86_64' 'i686') +url="https://github.com/NerdyPepper/dijo" +pkgdesc="scriptable, curses-based, digital habit tracker" +license=('MIT') +depends=() +makedepends=('rust' 'cargo' 'git') +checkdepends=() +provides=('dijo') +conflicts=('dijo') +source=("$_pkgname::git+https://github.com/NerdyPepper/dijo.git") +sha256sums=('SKIP') + +pkgver() { + cd $_pkgname + echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" +} + +build(){ + cd "$_pkgname" + cargo build --release --locked +} + +package() { + cd $_pkgname + install -D -m755 "target/release/dijo" "$pkgdir/usr/bin/dijo" + install -D -m644 "dijo.1" "$pkgdir/usr/share/man/man1/dijo.1" +} -- cgit v1.2.3-70-g09d2