From 0965ca2029549ab6322332f0a636f81de910e250 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 13 Sep 2022 18:01:20 +0300 Subject: rlr-git: tracking --- rlr-git/.SRCINFO | 15 +++++++++++++++ rlr-git/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 rlr-git/.SRCINFO create mode 100644 rlr-git/PKGBUILD diff --git a/rlr-git/.SRCINFO b/rlr-git/.SRCINFO new file mode 100644 index 0000000..7969152 --- /dev/null +++ b/rlr-git/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = rlr-git + pkgdesc = interactive pixel screen ruler and protractor + pkgver = r19.3d62f7a + pkgrel = 1 + url = https://github.com/epilys/rlr + arch = any + license = GPL + makedepends = git + makedepends = cargo + provides = rlr + conflicts = rlr + source = rlr::git+https://github.com/epilys/rlr + sha256sums = SKIP + +pkgname = rlr-git diff --git a/rlr-git/PKGBUILD b/rlr-git/PKGBUILD new file mode 100644 index 0000000..a1773e0 --- /dev/null +++ b/rlr-git/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Yigit Sever +pkgname=rlr-git # '-bzr', '-git', '-hg' or '-svn' +pkgver=r19.3d62f7a +pkgrel=1 +pkgdesc="interactive pixel screen ruler and protractor" +arch=('any') +url="https://github.com/epilys/rlr" +license=('GPL') +depends=() +makedepends=('git' 'cargo') # 'bzr', 'git', 'mercurial' or 'subversion' +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("${pkgname%-git}::git+${url}") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%-git}" + # Git, no tags available + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/${pkgname%-git}" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$srcdir/${pkgname%-git}" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features +} + +package() { + cd "$srcdir/${pkgname%-git}" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%-git}" +} -- cgit v1.2.3-70-g09d2