Package Details: fontfor 0.3.1-2

Git Clone URL: https://aur.archlinux.org/fontfor.git (read-only, click to copy)
Package Base: fontfor
Description: Find fonts which can show a specified character and preview them in terminal or browser.
Upstream URL: https://github.com/7sDream/fontfor
Licenses: GPL-3.0
Submitter: wallace11
Maintainer: wallace11
Last Packager: wallace11
Votes: 3
Popularity: 0.000000
First Submitted: 2020-02-05 09:14 (UTC)
Last Updated: 2020-12-05 20:15 (UTC)

Latest Comments

bart commented on 2025-02-27 13:17 (UTC)

The following patch updates to version 0.4.3:

diff --git a/PKGBUILD b/PKGBUILD
index 0380f36..9f4048b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,28 @@
 # Maintainer: wallace < str(11) + my_id at gmail dot com>

 pkgname=fontfor
-pkgver=0.3.1
+pkgver=0.4.3
 pkgrel=2
 pkgdesc="Find fonts which can show a specified character and preview them in terminal or browser."
 arch=('x86_64')
 url=https://github.com/7sDream/fontfor
-license=('GPL-3.0')
+license=('GPL-3.0-only')
 depends=()
 makedepends=('rust' 'cmake' 'freetype2')
-source=("$url/archive/v$pkgver.tar.gz")
-sha256sums=('0e7969de5a6313d6b8a11a16f07c607ba9c82c26dfa0ddecff08c153e000801e')
+source=("$pkgname}-${pkgver}.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('ee4767a974e6a90992a3a6a3665b10a32932caf59faf9e99740b6fcc682fb1e7')
+
+prepare() {
+    cd $pkgname-$pkgver
+    export RUSTUP_TOOLCHAIN=stable
+    cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
+}

 build() {
     cd $pkgname-$pkgver
-    cargo build --release --locked
+    export RUSTUP_TOOLCHAIN=stable
+    export CARGO_TARGET_DIR=target
+    cargo build --frozen --release --all-features
 }

 package() {