diff options
author | Yigit Sever | 2024-12-03 08:44:47 +0100 |
---|---|---|
committer | Yigit Sever | 2024-12-03 08:44:47 +0100 |
commit | 27f0fb07a2d9fc703f9414fa13c28916b63023cf (patch) | |
tree | 13bdb3e393066e1124ac4b2ec579e324925a9691 | |
parent | 74f85b8eac73ceaccf2a0066451d11aa60025da3 (diff) | |
download | packages-27f0fb07a2d9fc703f9414fa13c28916b63023cf.tar.gz packages-27f0fb07a2d9fc703f9414fa13c28916b63023cf.tar.bz2 packages-27f0fb07a2d9fc703f9414fa13c28916b63023cf.zip |
upgpkg: rlr-git r64.7bed0f3-1
-rw-r--r-- | rlr-git/.SRCINFO | 4 | ||||
-rw-r--r-- | rlr-git/PKGBUILD | 41 |
2 files changed, 23 insertions, 22 deletions
diff --git a/rlr-git/.SRCINFO b/rlr-git/.SRCINFO index 5d8ee9e..cc77a71 100644 --- a/rlr-git/.SRCINFO +++ b/rlr-git/.SRCINFO | |||
@@ -1,10 +1,10 @@ | |||
1 | pkgbase = rlr-git | 1 | pkgbase = rlr-git |
2 | pkgdesc = interactive pixel screen ruler and protractor | 2 | pkgdesc = interactive pixel screen ruler and protractor |
3 | pkgver = r31.463c617 | 3 | pkgver = r64.7bed0f3 |
4 | pkgrel = 1 | 4 | pkgrel = 1 |
5 | url = https://github.com/epilys/rlr | 5 | url = https://github.com/epilys/rlr |
6 | arch = any | 6 | arch = any |
7 | license = GPL | 7 | license = GPL-3.0-or-later |
8 | makedepends = git | 8 | makedepends = git |
9 | makedepends = cargo | 9 | makedepends = cargo |
10 | provides = rlr | 10 | provides = rlr |
diff --git a/rlr-git/PKGBUILD b/rlr-git/PKGBUILD index 4ec3d19..1c9da2d 100644 --- a/rlr-git/PKGBUILD +++ b/rlr-git/PKGBUILD | |||
@@ -1,12 +1,14 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | 1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> |
2 | # Contributor: Paulo Fino <[email protected]> | ||
2 | 3 | ||
3 | pkgname=rlr-git | 4 | pkgname=rlr-git |
4 | pkgver=r31.463c617 | 5 | _pkgnamefull=com.github.epilys.rlr |
6 | pkgver=r64.7bed0f3 | ||
5 | pkgrel=1 | 7 | pkgrel=1 |
6 | pkgdesc="interactive pixel screen ruler and protractor" | 8 | pkgdesc="interactive pixel screen ruler and protractor" |
7 | arch=('any') | 9 | arch=('any') |
8 | url="https://github.com/epilys/rlr" | 10 | url="https://github.com/epilys/rlr" |
9 | license=('GPL') | 11 | license=('GPL-3.0-or-later') |
10 | makedepends=('git' 'cargo') | 12 | makedepends=('git' 'cargo') |
11 | provides=("${pkgname%-git}") | 13 | provides=("${pkgname%-git}") |
12 | conflicts=("${pkgname%-git}") | 14 | conflicts=("${pkgname%-git}") |
@@ -14,32 +16,31 @@ source=("${pkgname%-git}::git+${url}") | |||
14 | sha256sums=('SKIP') | 16 | sha256sums=('SKIP') |
15 | 17 | ||
16 | pkgver() { | 18 | pkgver() { |
17 | cd "$srcdir/${pkgname%-git}" | 19 | cd "$srcdir/${pkgname%-git}" |
18 | # git, no tags available | 20 | # git, no tags available |
19 | printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | 21 | printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" |
20 | } | 22 | } |
21 | 23 | ||
22 | prepare() { | 24 | prepare() { |
23 | cd "$srcdir/${pkgname%-git}" | 25 | cd "$srcdir/${pkgname%-git}" |
24 | cargo fetch --locked --target "$CARCH-unknown-linux-gnu" | 26 | cargo fetch --locked --target "$CARCH-unknown-linux-gnu" |
25 | } | 27 | } |
26 | 28 | ||
27 | build() { | 29 | build() { |
28 | cd "$srcdir/${pkgname%-git}" | 30 | cd "$srcdir/${pkgname%-git}" |
29 | export RUSTUP_TOOLCHAIN=stable | 31 | export RUSTUP_TOOLCHAIN=stable |
30 | export CARGO_TARGET_DIR=target | 32 | export CARGO_TARGET_DIR=target |
31 | cargo build --frozen --release --all-features | 33 | cargo build --frozen --release --all-features |
32 | } | 34 | } |
33 | 35 | ||
34 | package() { | 36 | package() { |
35 | # binary | 37 | # binary |
36 | install -Dm0755 "${srcdir}/${pkgname%-git}/target/release/${pkgname%-git}" -t "${pkgdir}/usr/bin/" | 38 | install -Dm0755 "${srcdir}/${pkgname%-git}/target/release/${pkgname%-git}" -t "${pkgdir}/usr/bin/" |
37 | # desktop file | 39 | # desktop file |
38 | install -Dm644 "${srcdir}/${pkgname%-git}/${pkgname%-git}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-git}.desktop" | 40 | install -Dm644 "${srcdir}/${pkgname%-git}/data/${_pkgnamefull%}.desktop" "${pkgdir}/usr/share/applications/${_pkgnamefull%}.desktop" |
39 | |||
40 | # icon | ||
41 | install -Dm644 "${srcdir}/${pkgname%-git}/${pkgname%-git}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname%-git}.svg" | ||
42 | # symbolic icon | ||
43 | install -Dm644 "${srcdir}/${pkgname%-git}/${pkgname%-git}-symbolic.svg" "${pkgdir}/usr/share/icons/hicolor/symbolic/apps/${pkgname%-git}-symbolic.svg" | ||
44 | 41 | ||
42 | # icon | ||
43 | install -Dm644 "${srcdir}/${pkgname%-git}/data/${_pkgnamefull%}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_pkgnamefull%}.svg" | ||
44 | # symbolic icon | ||
45 | install -Dm644 "${srcdir}/${pkgname%-git}/data/${_pkgnamefull%}-symbolic.svg" "${pkgdir}/usr/share/icons/hicolor/symbolic/apps/${_pkgnamefull%}-symbolic.svg" | ||
45 | } | 46 | } |