summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiehong Ma2017-01-28 10:00:34 +0100
committerJiehong Ma2017-01-28 10:00:34 +0100
commitcee94e4704ff8681f80f7cdc9c50b1a79e49fcb7 (patch)
tree68e719a87514c6fcf6e15712d2ed6563d72b7c21
parent4e21c982c884c1212e003d6449348585a799900a (diff)
downloadaur-cee94e4704ff8681f80f7cdc9c50b1a79e49fcb7.tar.gz
bugfix: remove useless font cache update, as pacman handles it
Thanks to felix.s for pointing that out
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD28
-rw-r--r--ttf.install15
3 files changed, 18 insertions, 40 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c13a500963b..4e0e6fd0839 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,16 @@
-# Generated by makepkg 4.2.1
-# Tue Jun 9 20:17:03 UTC 2015
+# Generated by mksrcinfo v8
+# Sat Jan 28 09:00:09 UTC 2017
pkgbase = ttf-tw
- pkgdesc = Set of KAI and SONG fonts from the Ministry of Education of Taiwan. These fonts follow all the official recommendations and their shapes are calligraphically correct.
+ pkgdesc = Set of KAI and SONG fonts from the Ministry of Education of Taiwan. These fonts follow all the official recommendations and their shapes are calligraphically correct. (TTF/UTF-8)
pkgver = 20130103
- pkgrel = 1
+ pkgrel = 2
epoch = 1
url = http://www.moe.gov.tw/
- install = ttf.install
arch = any
license = CC-BY-ND 3.0
- depends = fontconfig
- depends = xorg-font-utils
- depends = git
+ makedepends = git
source = git+https://github.com/Jiehong/TW-fonts.git
- source = ttf.install
sha512sums = SKIP
- sha512sums = 6dde1db4c4204d89ee7d388b6f5fe972202adf4d294d18d709c94074278b8cdce129fc35ce55c62428487e4cc8df03a4c374df2e63b8406214a8a68661a1b114
pkgname = ttf-tw
diff --git a/PKGBUILD b/PKGBUILD
index 796490ada78..c5705686ef7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,28 +2,26 @@
pkgname=ttf-tw
epoch=1
pkgver=20130103
-pkgrel=1
-pkgdesc="Set of KAI and SONG fonts from the Ministry of Education of Taiwan. These fonts follow all the official recommendations and their shapes are calligraphically correct."
+pkgrel=2
+pkgdesc="Set of KAI and SONG fonts from the Ministry of Education of Taiwan. These fonts follow all the official recommendations and their shapes are calligraphically correct. (TTF/UTF-8)"
arch=('any')
url="http://www.moe.gov.tw/"
license=('CC-BY-ND 3.0')
-depends=('fontconfig' 'xorg-font-utils' 'git')
+depends=()
+makedepends=('git')
conflicts=()
-install=ttf.install
-source=(git+https://github.com/Jiehong/TW-fonts.git
- ttf.install)
-sha512sums=('SKIP'
-'6dde1db4c4204d89ee7d388b6f5fe972202adf4d294d18d709c94074278b8cdce129fc35ce55c62428487e4cc8df03a4c374df2e63b8406214a8a68661a1b114')
-
+source=(git+https://github.com/Jiehong/TW-fonts.git)
+sha512sums=('SKIP')
+
pkgver()
{
-cd "$srcdir/TW-fonts"
-git show --no-patch --date=short --format=format:%cd | tr -d -
+ cd "$srcdir/TW-fonts"
+ git show --no-patch --date=short --format=format:%cd | tr -d -
}
-
+
package()
{
-cd "$srcdir"
-install -Dm644 TW-fonts/edukai-3.ttf "$pkgdir/usr/share/fonts/TTF/edukai-3.ttf"
-install -Dm644 TW-fonts/eduSong_Unicode.ttf "$pkgdir/usr/share/fonts/TTF/eduSong_Unicode.ttf"
+ cd "$srcdir"
+ install -Dm644 TW-fonts/edukai-3.ttf "$pkgdir/usr/share/fonts/TTF/edukai-3.ttf"
+ install -Dm644 TW-fonts/eduSong_Unicode.ttf "$pkgdir/usr/share/fonts/TTF/eduSong_Unicode.ttf"
}
diff --git a/ttf.install b/ttf.install
deleted file mode 100644
index aa7f72b87e1..00000000000
--- 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
-}