Caleb Maclennan pushed to branch main at Arch Linux / Packaging / Packages /
libertinus-font
Commits:
73807922 by Caleb Maclennan at 2024-09-20T01:02:09+03:00
upgpkg: 7.040-4: Overhaul with font packaging norms, make room for upstream TTF
build option
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,13 +1,13 @@
pkgbase = libertinus-font
pkgdesc = Fonts based on Linux Libertine/Biolinum, with extended math
support
pkgver = 7.040
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/alerque/libertinus
arch = any
- license = custom:OFL
- provides = otf-libertinus
- replaces = otf-libertinus
+ license = OFL-1.1-RFN
source =
https://github.com/alerque/libertinus/releases/download/v7.040/Libertinus-7.040.tar.xz
sha256sums =
7fe9f022722d1c1cc67dc2c28a110b3bb55bae3575196160d2422c89333b3850
-pkgname = libertinus-font
+pkgname = otf-libertinus
+ provides = libertinus-font=7.040
+ replaces = libertinus-font
=====================================
PKGBUILD
=====================================
@@ -1,24 +1,23 @@
# Maintainer: Ivy Foster <[email protected]>
# Maintainer: Caleb Maclennan <[email protected]>
-pkgname=libertinus-font
+pkgbase=libertinus-font
+_fname="${pkgbase%-font}"
+pkgname=(otf-$_fname)
pkgver=7.040
-pkgrel=3
+pkgrel=4
pkgdesc='Fonts based on Linux Libertine/Biolinum, with extended math support'
-url=https://github.com/alerque/libertinus
-license=(custom:OFL)
-
-provides=(otf-libertinus)
-replaces=(otf-libertinus)
-
arch=(any)
-source=("https://github.com/alerque/libertinus/releases/download/v$pkgver/Libertinus-$pkgver.tar.xz")
-# Warning: checksums provided by packager, not upstream
+url="https://github.com/alerque/$_fname"
+license=(OFL-1.1-RFN)
+_archive="${_fname^}-$pkgver"
+source=("$url/releases/download/v$pkgver/$_archive.tar.xz")
sha256sums=('7fe9f022722d1c1cc67dc2c28a110b3bb55bae3575196160d2422c89333b3850')
-package() {
- cd "Libertinus-$pkgver"
- install -d "$pkgdir/usr/share/fonts/libertinus"
- install -m644 -t "$pkgdir/usr/share/fonts/libertinus" static/OTF/*.otf
- install -Dm644 OFL.txt
"$pkgdir/usr/share/licenses/libertinus-font/OFL.txt"
+package_otf-libertinus() {
+ cd "$_archive"
+ provides=("$pkgbase=$pkgver")
+ replaces=("$pkgbase")
+ install -Dm0644 -t "$pkgdir/usr/share/fonts/${_fname}/" static/OTF/*.otf
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" OFL.txt
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/libertinus-font/-/commit/73807922253eb299dd089b54588e8d532a37d812
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/libertinus-font/-/commit/73807922253eb299dd089b54588e8d532a37d812
You're receiving this email because of your account on gitlab.archlinux.org.