Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / 
rink


Commits:
fef67cbf by Daniel M. Capella at 2024-01-07T00:31:39-05:00
upgpkg: 0.7.0-1

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,16 @@
+pkgbase = rink
+       pkgdesc = Unit conversion tool and library written in rust
+       pkgver = 0.7.0
+       pkgrel = 1
+       url = https://rinkcalc.app
+       arch = x86_64
+       license = GPL3
+       license = MPL2
+       makedepends = git
+       makedepends = rust
+       depends = gcc-libs
+       depends = openssl
+       source = git+https://github.com/tiffany352/rink-rs.git#tag=v0.7.0
+       b2sums = SKIP
+
+pkgname = rink


=====================================
PKGBUILD
=====================================
@@ -1,33 +1,33 @@
 # Maintainer: Daniel M. Capella <poly...@archlinux.org>
 
 pkgname=rink
-pkgver=0.6.3
-pkgrel=2
+pkgver=0.7.0
+pkgrel=1
 pkgdesc='Unit conversion tool and library written in rust'
 arch=('x86_64')
 url=https://rinkcalc.app
 license=('GPL3' 'MPL2')
 depends=('gcc-libs' 'openssl')
-makedepends=('rust')
-source=("rink-$pkgver.tar.gz::https://static.crates.io/crates/rink/rink-$pkgver.crate";)
-b2sums=('ace1c42f8e5afc6746e7f66a515b8fb0fd534b843ed6d76cd85604b293e8134cac1ce13e4b5edf3a6317e0f96061f2a20c62268fbc57e897609e312d06d61c38')
+makedepends=('git' 'rust')
+source=("git+https://github.com/tiffany352/$pkgname-rs.git#tag=v$pkgver";)
+b2sums=('SKIP')
 
 prepare() {
-  cd rink-$pkgver
-  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+  cd $pkgname-rs
+  cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
 }
 
 build() {
-  cd rink-$pkgver
+  cd $pkgname-rs
   cargo build --release --locked --offline
 }
 
 check() {
-  cd rink-$pkgver
+  cd $pkgname-rs
   cargo test --locked --offline
 }
 
 package() {
-  cd rink-$pkgver
-  install -Dt "$pkgdir"/usr/bin target/release/rink
+  cd $pkgname-rs
+  install -Dt "$pkgdir"/usr/bin target/release/$pkgname
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/rink/-/commit/fef67cbf4993042551365b6879e037000f24bdf9

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/rink/-/commit/fef67cbf4993042551365b6879e037000f24bdf9
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to