summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2021-12-20 11:47:46 +0300
committerYigit Sever2021-12-20 11:47:46 +0300
commitbacdbc90efc8cd407b5ce658e3616748ae6c8ea3 (patch)
tree9b1ffbeed8fd83f5fe42bf0d6be98b4c21a0b932
downloadpackages-bacdbc90efc8cd407b5ce658e3616748ae6c8ea3.tar.gz
packages-bacdbc90efc8cd407b5ce658e3616748ae6c8ea3.tar.bz2
packages-bacdbc90efc8cd407b5ce658e3616748ae6c8ea3.zip
Publish to AUR
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD37
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..7969152
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
1pkgbase = rlr-git
2 pkgdesc = interactive pixel screen ruler and protractor
3 pkgver = r19.3d62f7a
4 pkgrel = 1
5 url = https://github.com/epilys/rlr
6 arch = any
7 license = GPL
8 makedepends = git
9 makedepends = cargo
10 provides = rlr
11 conflicts = rlr
12 source = rlr::git+https://github.com/epilys/rlr
13 sha256sums = SKIP
14
15pkgname = rlr-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..a1773e0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2pkgname=rlr-git # '-bzr', '-git', '-hg' or '-svn'
3pkgver=r19.3d62f7a
4pkgrel=1
5pkgdesc="interactive pixel screen ruler and protractor"
6arch=('any')
7url="https://github.com/epilys/rlr"
8license=('GPL')
9depends=()
10makedepends=('git' 'cargo') # 'bzr', 'git', 'mercurial' or 'subversion'
11provides=("${pkgname%-git}")
12conflicts=("${pkgname%-git}")
13source=("${pkgname%-git}::git+${url}")
14sha256sums=('SKIP')
15
16pkgver() {
17 cd "$srcdir/${pkgname%-git}"
18 # Git, no tags available
19 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
20}
21
22prepare() {
23 cd "$srcdir/${pkgname%-git}"
24 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
25}
26
27build() {
28 cd "$srcdir/${pkgname%-git}"
29 export RUSTUP_TOOLCHAIN=stable
30 export CARGO_TARGET_DIR=target
31 cargo build --frozen --release --all-features
32}
33
34package() {
35 cd "$srcdir/${pkgname%-git}"
36 install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%-git}"
37}