summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2021-06-01 15:32:57 +0300
committerCaleb Maclennan2021-06-01 15:32:59 +0300
commit43c49c087384e640cb798d334c63758b85746ed0 (patch)
treee56f496e0805e8faf4462e579a66551ff735cda1
parent844f8198d72ff824cd5ee565e62accbf6b7b59f6 (diff)
downloadaur-43c49c087384e640cb798d334c63758b85746ed0.tar.gz
Adopt and overhaul broken packaging
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD24
-rw-r--r--equestria-fonts.install14
3 files changed, 15 insertions, 35 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b92c97da35e..1e17bce2021 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,14 @@
pkgbase = equestria-fonts
- pkgdesc = Based on the package logos for Hasbro's My Little Pony Line. Includes full alphabet, extended characters and punctuation, and Euro.
+ pkgdesc = Irregular, irreverent typeface based on logos for Hasbro’s My Little Pony Line
pkgver = 20140909
- pkgrel = 1
+ pkgrel = 2
url = http://www.dafont.com/equestria.font
- install = equestria-fonts.install
arch = any
license = custom:Pixel Sagas Freeware Fonts
- depends = fontconfig
- depends = xorg-font-utils
provides = ttf-equestria
conflicts = ttf-equestria
replaces = ttf-equestria
- source = equestria.zip::http://img.dafont.com/dl/?f=equestria
- md5sums = 5cbfa71684abbfd0c901e16ad931c628
+ source = equestria-fonts-20140909-2.zip::http://img.dafont.com/dl/?f=equestria
+ sha256sums = d12fa57f66fb3e7ff5b5a12e6125bada73355c2d468099faabe5acc16177433a
pkgname = equestria-fonts
-
diff --git a/PKGBUILD b/PKGBUILD
index 5e6fe8a7b68..40dcc7b6c73 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,19 @@
+# Maintainer: Caleb Maclennan <caleb@alerque.com>
+
pkgname=equestria-fonts
pkgver=20140909
-pkgrel=1
-pkgdesc="Based on the package logos for Hasbro's My Little Pony Line. Includes full alphabet, extended characters and punctuation, and Euro."
+pkgrel=2
+pkgdesc='Irregular, irreverent typeface based on logos for Hasbro’s My Little Pony Line'
arch=(any)
-url="http://www.dafont.com/equestria.font"
-license=("custom:Pixel Sagas Freeware Fonts")
-depends=(fontconfig xorg-font-utils)
-source=("equestria.zip::http://img.dafont.com/dl/?f=equestria")
-md5sums=('5cbfa71684abbfd0c901e16ad931c628')
+url='http://www.dafont.com/equestria.font'
+license=('custom:Pixel Sagas Freeware Fonts')
provides=(ttf-equestria)
conflicts=(ttf-equestria)
replaces=(ttf-equestria)
-install="$pkgname.install"
+source=("$pkgname-$pkgver-$pkgrel.zip::http://img.dafont.com/dl/?f=equestria")
+sha256sums=('d12fa57f66fb3e7ff5b5a12e6125bada73355c2d468099faabe5acc16177433a')
-package()
-{
- cd "$srcdir"
- find . -name '*.otf' -exec install -Dm644 {} "$pkgdir/usr/share/fonts/OTF/"{} \;
- install -Dm644 "$srcdir/Font License.txt" "$pkgdir/usr/share/licenses/equestria-fonts/Font License.txt"
+package() {
+ install -Dpm644 -t "$pkgdir/usr/share/fonts/OTF/" *.otf
+ install -Dpm644 -t "$pkgdir/usr/share/licenses/$pkgname/" 'Font License.txt'
}
diff --git a/equestria-fonts.install b/equestria-fonts.install
deleted file mode 100644
index 46a2f95fffd..00000000000
--- a/equestria-fonts.install
+++ /dev/null
@@ -1,14 +0,0 @@
-post_install()
-{
- echo -n "Updating font cache... "
- fc-cache -fs >/dev/null
- mkfontscale /usr/share/fonts/TTF /usr/share/fonts/Type1
- mkfontdir /usr/share/fonts/TTF /usr/share/fonts/Type1
- echo "done"
-}
-
-post_upgrade()
-{
- post_install
-}
-