summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2020-06-30 02:08:29 +0300
committerCaleb Maclennan2020-06-30 02:08:29 +0300
commit4f8c2678a8d3b65bdcc0772e7afbbbc94aa4b7eb (patch)
tree5c46f641997c2a6b230a85eb38a282a70c783ce2
parentcd0b831bd4f769c8e782e869209759efc710d666 (diff)
downloadaur-ttf-brill.tar.gz
Adopt, remove obsoleted dependencies, overhaul packaging
upgpkg: ttf-brill 2.06-2
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD35
-rw-r--r--ttf-brill.install15
3 files changed, 23 insertions, 36 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 75379818568..1499bb42b11 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,10 @@
pkgbase = ttf-brill
- pkgdesc = Brill Typeface by John Hudson for Brill Publishing House (TrueType)
+ pkgdesc = Brill Typeface by John Hudson for Brill Publishing House
pkgver = 2.06
- pkgrel = 1
- url = http://www.brill.com/about/brill-fonts
- install = ttf-brill.install
+ pkgrel = 2
+ url = https://brill.com/page/BrillFont/brill-typeface
arch = any
license = custom
- depends = fontconfig
- depends = xorg-font-utils
source = https://brill.com/fileasset/downloads_static/static_typefacedownload_typefacepackage.zip
sha256sums = b58eeb26ea43d9a020ac9891a395ff7364bac7215d0714910561b675e4947166
diff --git a/PKGBUILD b/PKGBUILD
index 22ed8a24552..d727e0d8817 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,31 @@
-# Maintainer: jdarch <jda -dot- cloud -plus- archlinux -at- gmail -dot- com>
+# Maintainer: Caleb Maclennan <caleb@alerque.com>
+# Contributor: jdarch <jda -dot- cloud -plus- archlinux -at- gmail -dot- com>
# Contributor: Manuel Hüsers <manuel.huesers@uni-ol.de>
pkgname=ttf-brill
-pkgdesc="Brill Typeface by John Hudson for Brill Publishing House (TrueType)"
+pkgdesc='Brill Typeface by John Hudson for Brill Publishing House'
pkgver=2.06
-pkgrel=1
-url="http://www.brill.com/about/brill-fonts"
+pkgrel=2
+url="https://brill.com/page/BrillFont/brill-typeface"
license=('custom')
-depends=('fontconfig' 'xorg-font-utils')
arch=('any')
-install=$pkgname.install
-_ucpkgver=${pkgver//./_}
-_completeversion="2.06 051"
-
source=("https://brill.com/fileasset/downloads_static/static_typefacedownload_typefacepackage.zip")
sha256sums=('b58eeb26ea43d9a020ac9891a395ff7364bac7215d0714910561b675e4947166')
+prepare () {
+ local _completeversion="$pkgver 051"
+ cd "Brill_Typeface_$pkgver"
+ for f in *"$_completeversion"*; do
+ mv "$f" "${f// $_completeversion/}"
+ done
+ for f in *_$pkgver*; do
+ mv "$f" "${f//_$pkgver/}"
+ done
+}
+
package() {
- install -D "${srcdir}/Brill_Typeface_${pkgver}/Brill Roman ${_completeversion}.ttf" "${pkgdir}/usr/share/fonts/${pkgname}/Brill-Roman.ttf"
- install -D "${srcdir}/Brill_Typeface_${pkgver}/Brill Italic ${_completeversion}.ttf" "${pkgdir}/usr/share/fonts/${pkgname}/Brill-Italic.ttf"
- install -D "${srcdir}/Brill_Typeface_${pkgver}/Brill Bold ${_completeversion}.ttf" "${pkgdir}/usr/share/fonts/${pkgname}/Brill-Bold.ttf"
- install -D "${srcdir}/Brill_Typeface_${pkgver}/Brill Bold Italic ${_completeversion}.ttf" "${pkgdir}/usr/share/fonts/${pkgname}/Brill-BoldItalic.ttf"
- install -D "${srcdir}/Brill_Typeface_${pkgver}/00_Brill_Fonts_Read_Me_First.txt" "${pkgdir}/usr/share/licenses/${pkgname}/end_user_license.txt"
- install -D "${srcdir}/Brill_Typeface_${pkgver}/Brill_Typeface_User_Guide_${pkgver}.pdf" "${pkgdir}/usr/share/doc/${pkgname}/Brill_Typeface_User_Guide.pdf"
+ cd "Brill_Typeface_$pkgver"
+ install -Dm644 -t "$pkgdir/usr/share/fonts/TTF/" *.ttf
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" 00_Brill_Fonts_Read_Me_First.txt Brill_Fonts_End_User_License_Agreement.pdf
+ install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname/" Brill_Typeface_User_Guide.pdf
}
diff --git a/ttf-brill.install b/ttf-brill.install
deleted file mode 100644
index ac8bc475734..00000000000
--- a/ttf-brill.install
+++ /dev/null
@@ -1,15 +0,0 @@
-post_install() {
- echo -n "Updating font cache... "
- fc-cache -fs >/dev/null
- mkfontscale /usr/share/fonts/ttf-brill
- mkfontdir /usr/share/fonts/ttf-brill
- echo "done"
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}