[arch-commits] Commit in cascadia-code/repos/community-any (PKGBUILD PKGBUILD)

Konstantin Gizdov kgizdov at archlinux.org
Tue Sep 1 07:21:30 UTC 2020


    Date: Tuesday, September 1, 2020 @ 07:21:30
  Author: kgizdov
Revision: 695264

archrelease: copy trunk to community-any

Added:
  cascadia-code/repos/community-any/PKGBUILD
    (from rev 695263, cascadia-code/trunk/PKGBUILD)
Deleted:
  cascadia-code/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   84 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 44 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-01 07:21:24 UTC (rev 695263)
+++ PKGBUILD	2020-09-01 07:21:30 UTC (rev 695264)
@@ -1,40 +0,0 @@
-# Maintainer: Konstantin Gizdov <arch at kge dot pw>
-# Contributor: Jerome Leclanche <jerome at leclan.ch>
-
-pkgbase=cascadia-code
-pkgname=("ttf-${pkgbase}" "otf-${pkgbase}" "woff2-${pkgbase}")
-pkgver=2007.01
-pkgrel=1
-pkgdesc="A monospaced font by Microsoft that includes programming ligatures"
-arch=("any")
-url="https://github.com/microsoft/cascadia-code"
-license=("custom:OFL")
-source=(
-    "${pkgname}-${pkgver}-release.zip::https://github.com/microsoft/${pkgbase}/releases/download/v${pkgver}/CascadiaCode-${pkgver}.zip"
-    "${pkgname}-${pkgver}.tar.gz::https://github.com/microsoft/${pkgbase}/archive/v${pkgver}.tar.gz"
-)
-sha256sums=('9f066d0d9cb2669bea2e130d7add43d496bf24ef995f42dc603fc2014574a3a4'
-            '50b9066badadeb15c19330544872c663e45b39caee2bb0cd77d831a158b2c415')
-
-
-function _package() {
-    cd "$srcdir/"
-
-    local ext="${1%%-*}"
-    local installdir="${ext^^}"
-    local fonts=("${srcdir}/${ext}"/*."${ext}")
-
-    # Install fonts
-    install -d "${pkgdir}/usr/share/fonts/${installdir}"
-    local font
-    for font in "${fonts[@]}"; do
-        install -m644 "${font}" "${pkgdir}/usr/share/fonts/${installdir}"
-    done
-
-    # Install license
-    install -Dm644 "${srcdir}/${pkgbase}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-for _pkgname in ${pkgname[@]}; do
-    eval "function package_$_pkgname() { _package $_pkgname; }"
-done

Copied: cascadia-code/repos/community-any/PKGBUILD (from rev 695263, cascadia-code/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-09-01 07:21:30 UTC (rev 695264)
@@ -0,0 +1,44 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Contributor: Jerome Leclanche <jerome at leclan.ch>
+
+pkgbase=cascadia-code
+pkgname=("ttf-${pkgbase}" "otf-${pkgbase}" "woff2-${pkgbase}")
+pkgver=2008.25
+pkgrel=1
+pkgdesc="A monospaced font by Microsoft that includes programming ligatures"
+arch=("any")
+url="https://github.com/microsoft/cascadia-code"
+license=("custom:OFL")
+source=(
+    "${pkgname}-${pkgver}-release.zip::https://github.com/microsoft/${pkgbase}/releases/download/v${pkgver}/CascadiaCode-${pkgver}.zip"
+    "${pkgname}-${pkgver}.tar.gz::https://github.com/microsoft/${pkgbase}/archive/v${pkgver}.tar.gz"
+)
+sha256sums=('4602a0b8b986b18a1c3f460fd959ec1ce522aedcf11ab4c0d41a5fc5ed839be0'
+            'ce730b1ed93ad2439306aa0d65bf7c5d737640ca9e06881d7e6691bc44c5d19f')
+
+function prepare() {
+    cd "${srcdir}/otf/static"
+    cp ./*.otf ../
+}
+
+function _package() {
+    cd "${srcdir}/"
+
+    local ext="${1%%-*}"
+    local installdir="${ext^^}"
+    local fonts=("${srcdir}/${ext}"/*."${ext}")
+
+    # Install fonts
+    install -d "${pkgdir}/usr/share/fonts/${installdir}"
+    local font
+    for font in "${fonts[@]}"; do
+        install -m644 "${font}" "${pkgdir}/usr/share/fonts/${installdir}"
+    done
+
+    # Install license
+    install -Dm644 "${srcdir}/${pkgbase}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+for _pkgname in ${pkgname[@]}; do
+    eval "function package_$_pkgname() { _package $_pkgname; }"
+done


More information about the arch-commits mailing list