diff options
author | Yigit Sever | 2022-09-13 18:01:20 +0300 |
---|---|---|
committer | Yigit Sever | 2022-09-13 18:01:20 +0300 |
commit | 0965ca2029549ab6322332f0a636f81de910e250 (patch) | |
tree | 6c66ff11d08c82c2e3cfb22f4d1aee1be6b31a2e /rlr-git/PKGBUILD | |
parent | 57efd7d0687c03825b376a918bda4db36e2af6b4 (diff) | |
download | packages-0965ca2029549ab6322332f0a636f81de910e250.tar.gz packages-0965ca2029549ab6322332f0a636f81de910e250.tar.bz2 packages-0965ca2029549ab6322332f0a636f81de910e250.zip |
rlr-git: tracking
Diffstat (limited to 'rlr-git/PKGBUILD')
-rw-r--r-- | rlr-git/PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
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 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
2 | pkgname=rlr-git # '-bzr', '-git', '-hg' or '-svn' | ||
3 | pkgver=r19.3d62f7a | ||
4 | pkgrel=1 | ||
5 | pkgdesc="interactive pixel screen ruler and protractor" | ||
6 | arch=('any') | ||
7 | url="https://github.com/epilys/rlr" | ||
8 | license=('GPL') | ||
9 | depends=() | ||
10 | makedepends=('git' 'cargo') # 'bzr', 'git', 'mercurial' or 'subversion' | ||
11 | provides=("${pkgname%-git}") | ||
12 | conflicts=("${pkgname%-git}") | ||
13 | source=("${pkgname%-git}::git+${url}") | ||
14 | sha256sums=('SKIP') | ||
15 | |||
16 | pkgver() { | ||
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 | |||
22 | prepare() { | ||
23 | cd "$srcdir/${pkgname%-git}" | ||
24 | cargo fetch --locked --target "$CARCH-unknown-linux-gnu" | ||
25 | } | ||
26 | |||
27 | build() { | ||
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 | |||
34 | package() { | ||
35 | cd "$srcdir/${pkgname%-git}" | ||
36 | install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%-git}" | ||
37 | } | ||