summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Arndt2020-07-14 15:34:46 +0200
committerChristopher Arndt2020-08-29 19:15:15 +0200
commit10a4d25965d7a33db3fca5251216860f0599423e (patch)
tree863e24b4bd99cd86fa3bf27d545ed5b945ec7b1b
parent9e698a918e24d511fa6f39d399b703b33813f1b5 (diff)
downloadaur-ttf-impallari-lobster-font.tar.gz
Various packaging updates & improvements
* Corrected pkgdesc * Remove obsolete .install file and dependencies * Updated homepage URL to GitHub page, since original homepage does not resolve anymore. * Changed license filed from 'custom:OFL' to 'OFL' * Simplified install commands * Added .gitignore file * Changed source hash from MD5 to SHA256
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD30
-rw-r--r--updatefont.install15
4 files changed, 20 insertions, 45 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6723efee8c4..c57cf407238 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,13 @@
-# Generated by mksrcinfo v8
-# Sun Dec 31 18:02:28 UTC 2017
pkgbase = ttf-impallari-lobster-font
- pkgdesc = A lovely bold condensed script (OTF), from Pablo Impallari
+ pkgdesc = A lovely bold condensed script font (TTF), from Pablo Impallari
pkgver = 1.7
- pkgrel = 1
- url = http://www.impallari.com/lobster/
- install = updatefont.install
+ pkgrel = 2
+ url = https://github.com/impallari/The-Lobster-Font
arch = any
groups = impallari-fonts
- license = custom:OFL
- depends = fontconfig
- depends = xorg-font-utils
+ license = OFL
source = lobster-font-1.7.zip::https://github.com/impallari/The-Lobster-Font/archive/master.zip
- md5sums = 8c3d8eee96154344d44c91a7275f389c
+ sha256sums = 501ebbe8ebcadeb33d5b21786c57023236b996ed71a8900f0475e5252a996863
pkgname = ttf-impallari-lobster-font
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..368dc98d4bb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+ttf-impallari-lobster-font-*.pkg.tar.xz
+ttf-impallari-lobster-font-*.pkg.tar.zst
+lobster-font-*.zip
diff --git a/PKGBUILD b/PKGBUILD
index 77e93e32237..6fd91dc945a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,23 @@
-# Contributor: Marcos Heredia <chelqo@gmail.com>
+# Maintainer: Marcos Heredia <chelqo@gmail.com>
+# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
_font="lobster-font"
_group="impallari"
pkgname=ttf-${_group}-${_font}
pkgver=1.7
-pkgrel=1
-pkgdesc="A lovely bold condensed script (OTF), from Pablo Impallari"
+pkgrel=2
+pkgdesc="A lovely bold condensed script font (TTF), from Pablo Impallari"
arch=(any)
-url="http://www.impallari.com/lobster/"
-license=('custom:OFL')
+url="https://github.com/impallari/The-Lobster-Font"
+license=('OFL')
groups=("${_group}-fonts")
-depends=('fontconfig' 'xorg-font-utils')
-#install=updatefont.install
-#source=("http://www.impallari.com/media/releases/${_font}-${pkgver}.zip")
-#md5sums=('ed3c3873340a17276a8ad556ecf3da5a')
-#source=("${_font}-${pkgver}.zip::https://fonts.google.com/download?family=Lobster")
-#md5sums=('72a360e59e977abb5e92a6bdbc3d6740')
source=("${_font}-${pkgver}.zip::https://github.com/impallari/The-Lobster-Font/archive/master.zip")
-md5sums=('8c3d8eee96154344d44c91a7275f389c')
+sha256sums=('501ebbe8ebcadeb33d5b21786c57023236b996ed71a8900f0475e5252a996863')
package() {
cd ${srcdir}/The-Lobster-Font-master
- install -dm755 "${pkgdir}/usr/share/fonts/TTF/${_group}"
- install -Dpm644 fonts/ttf/*.ttf "${pkgdir}/usr/share/fonts/TTF/${_group}"
-
- install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}/"
- install -Dpm644 OFL.txt "${pkgdir}/usr/share/licenses/${pkgname}/"
-
- install -dm755 "${pkgdir}/usr/share/doc/${pkgname}/"
- install -Dpm644 DESCRIPTION.en_us.html README.md "${pkgdir}/usr/share/doc/${pkgname}/"
+ install -Dpm644 fonts/ttf/*.ttf -t "${pkgdir}/usr/share/fonts/TTF/${_group}"
+ install -Dpm644 OFL.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+ install -Dpm644 DESCRIPTION.en_us.html README.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
}
diff --git a/updatefont.install b/updatefont.install
deleted file mode 100644
index 43e14fbd0cf..00000000000
--- a/updatefont.install
+++ /dev/null
@@ -1,15 +0,0 @@
-post_install() {
- echo -n "Updating font cache... "
- fc-cache -f > /dev/null
- mkfontscale /usr/share/fonts/TTF
- mkfontdir /usr/share/fonts/TTF
- echo "done."
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}