Package Details: ttf-xkcd-script-font r39.5632fde-1

Git Clone URL: https://aur.archlinux.org/otf-xkcd-font.git (read-only, click to copy)
Package Base: otf-xkcd-font
Description: The xkcd font.
Upstream URL: https://github.com/ipython/xkcd-font
Licenses: CCPL:cc-by-nc
Submitter: StephenBrown2
Maintainer: StephenBrown2
Last Packager: StephenBrown2
Votes: 3
Popularity: 0.001288
First Submitted: 2016-01-04 20:22
Last Updated: 2017-08-25 18:30

Latest Comments

SpotlightKid commented on 2020-07-14 14:19

Here's an updated PKGBUILD:

  • Removed obsolete .install files and dependencies
  • Don't install license file, it's already in the 'licenses' package
  • Fixed license field
  • Changed source URL to archive for fixed commit hash (Only *-git packages should use a checkout of the HEAD of a repo.)
  • Added .gitignore file
  • Changed source hash from MD5 to SHA256
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d293afc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+otf-xkcd-font-*.pkg.tar.xz
+otf-xkcd-font-*.pkg.tar.zst
+pkg/
+src/
+ttf-xkcd-script-font-*.pkg.tar.xz
+ttf-xkcd-script-font-*.pkg.tar.zst
+xkcd-font-*.zip
diff --git a/PKGBUILD b/PKGBUILD
index d67e752..9068993 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,25 @@
 # Maintainer: Stephen Brown II <Stephen [dot] Brown2 [at] gmail.com>
+# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
+
+_commit=39
+_hash="5632fde618845dba5c22f14adc7b52bf6c52d46d"
 _pkgbase=xkcd-font
 pkgname=('otf-xkcd-font' 'ttf-xkcd-script-font')
-pkgver=r39.5632fde
-pkgrel=1
+pkgver="r${_commit}.${_hash::7}"
+pkgrel=2
 pkgdesc="The xkcd font."
 arch=(any)
 url="https://github.com/ipython/xkcd-font"
-license=('CCPL:cc-by-nc')
-depends=('fontconfig' 'xorg-font-utils')
-source=($_pkgbase::git+https://github.com/ipython/xkcd-font.git)
-md5sums=(SKIP)
-pkgver() {
-  cd "$_pkgbase"
-  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
-}
+license=('CCPL:cc-by-nc-3.0')
+source=("$_pkgbase-$pkgver.zip::https://github.com/ipython/xkcd-font/archive/${_hash}.zip")
+sha256sums=('8d58ee790c9aa35ea7937443cb304ce9f8b663b9628a91c13a5a4b163772b904')
+
 package_otf-xkcd-font() {
-  install=otf.install
-  cd "$srcdir"
-  install -Dm644 "${_pkgbase}/xkcd/build/xkcd.otf" "$pkgdir/usr/share/fonts/OTF/xkcd.otf"
-  install -Dm644 "${_pkgbase}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  cd "${srcdir}/${_pkgbase}-${_hash}"
+  install -Dm644 xkcd/build/xkcd.otf -t "$pkgdir/usr/share/fonts/OTF"
 }
+
 package_ttf-xkcd-script-font() {
-  install=ttf.install
-  cd "$srcdir"
-  install -Dm644 "${_pkgbase}/xkcd-script/font/xkcd-script.ttf" "$pkgdir/usr/share/fonts/TTF/xkcd-script.ttf"
-  install -Dm644 "${_pkgbase}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  cd "${srcdir}/${_pkgbase}-${_hash}"
+  install -Dm644 xkcd-script/font/xkcd-script.ttf -t "$pkgdir/usr/share/fonts/TTF"
 }
diff --git a/otf.install b/otf.install
deleted file mode 100644
index a083640..0000000
--- a/otf.install
+++ /dev/null
@@ -1,15 +0,0 @@
-post_install() {
-  echo -n "==> Rebuilding font cache... "
-  fc-cache -f &> /dev/null
-  mkfontscale /usr/share/fonts/OTF
-  mkfontdir /usr/share/fonts/OTF
-  echo "done"
-}
-
-post_upgrade() {
-  post_install $1
-}
-
-post_remove() {
-  post_install $1
-}
\ No newline at end of file
diff --git a/ttf.install b/ttf.install
deleted file mode 100644
index 33b7d65..0000000
--- a/ttf.install
+++ /dev/null
@@ -1,15 +0,0 @@
-post_install() {
-  echo -n "==> Rebuilding font cache... "
-  fc-cache -f &> /dev/null
-  mkfontscale /usr/share/fonts/TTF
-  mkfontdir /usr/share/fonts/TTF
-  echo "done"
-}
-
-post_upgrade() {
-  post_install $1
-}
-
-post_remove() {
-  post_install $1
-}

SpotlightKid commented on 2020-07-03 15:47

The package xorg-font-utils was removed. Please update the dependencies.

petris commented on 2017-10-07 12:23

The install scripts should probably do "fc-cache -s" rather than "fc-cache -f" to avoid rebuilding the entire cache. Additionally, the fontconfig hook does this automatically so it's probably not necessary to do this in the install script.

StephenBrown2 commented on 2017-08-25 18:33

Apologies for the delay on a fix. The upstream repository had added a script version, and changed the directory structure.

I've split the package and added https://aur.archlinux.org/packages/ttf-xkcd-script-font/ as well, for those that wish to try it.

AG_Caesar commented on 2017-07-15 16:10

Install script is broken. The path seems to be wrong. Probably easy to fix, but not for me :D