summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Newgard2015-11-05 18:32:21 -0600
committerDoug Newgard2015-11-05 18:32:21 -0600
commitff4ef99a66c6519a44a98186c6236149b9acf7f0 (patch)
tree2b34de2358e66db22c0b0d0d1bbb6cf7c5c3a34a
parent9049500388cfd9333c14f84d98a9144a929addea (diff)
downloadaur-ff4ef99a66c6519a44a98186c6236149b9acf7f0.tar.gz
Switch to split package
-rw-r--r--.SRCINFO58
-rw-r--r--PKGBUILD84
2 files changed, 91 insertions, 51 deletions
diff --git a/.SRCINFO b/.SRCINFO
index abb8e322626..186aca8aa23 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,6 @@
pkgbase = ttf-ms-win10
- pkgdesc = Microsoft Windows 10 TrueType fonts
pkgver = 10.0.10240
- pkgrel = 2
+ pkgrel = 3
url = http://www.microsoft.com/typography/fonts/product.aspx?PID=164
install = ttf-ms-win10.install
arch = any
@@ -11,36 +10,10 @@ pkgbase = ttf-ms-win10
depends = xorg-mkfontscale
depends = xorg-mkfontdir
provides = ttf-font
- provides = ttf-tahoma
provides = ttf-ms-fonts
- provides = ttf-vista-fonts
- provides = ttf-win7-fonts
- provides = ttf-ms-win8
- provides = ttf-ms-win8-arabic
- provides = ttf-ms-win8-hebrew
- provides = ttf-ms-win8-indic
- provides = ttf-ms-win8-japanese
- provides = ttf-ms-win8-korean
- provides = ttf-ms-win8-other
- provides = ttf-ms-win8-sea
- provides = ttf-ms-win8-thai
- provides = ttf-ms-win8-zh_cn
- provides = ttf-ms-win8-zh_tw
- conflicts = ttf-tahoma
conflicts = ttf-ms-fonts
conflicts = ttf-vista-fonts
conflicts = ttf-win7-fonts
- conflicts = ttf-ms-win8
- conflicts = ttf-ms-win8-arabic
- conflicts = ttf-ms-win8-hebrew
- conflicts = ttf-ms-win8-indic
- conflicts = ttf-ms-win8-japanese
- conflicts = ttf-ms-win8-korean
- conflicts = ttf-ms-win8-other
- conflicts = ttf-ms-win8-sea
- conflicts = ttf-ms-win8-thai
- conflicts = ttf-ms-win8-zh_cn
- conflicts = ttf-ms-win8-zh_tw
source = file://arial.ttf
source = file://arialbd.ttf
source = file://ariali.ttf
@@ -317,4 +290,33 @@ pkgbase = ttf-ms-win10
sha256sums = SKIP
pkgname = ttf-ms-win10
+ pkgdesc = Microsoft Windows 10 TrueType fonts
+ provides = ttf-font
+ provides = ttf-ms-fonts
+ provides = ttf-tahoma
+ conflicts = ttf-ms-fonts
+ conflicts = ttf-vista-fonts
+ conflicts = ttf-win7-fonts
+ conflicts = ttf-tahoma
+
+pkgname = ttf-ms-win10-japanese
+ pkgdesc = Microsoft Windows 10 Japanese TrueType fonts
+
+pkgname = ttf-ms-win10-korean
+ pkgdesc = Microsoft Windows 10 Korean TrueType fonts
+
+pkgname = ttf-ms-win10-sea
+ pkgdesc = Microsoft Windows 10 Southeast Asian TrueType fonts
+
+pkgname = ttf-ms-win10-thai
+ pkgdesc = Microsoft Windows 10 Thai TrueType fonts
+
+pkgname = ttf-ms-win10-zh_cn
+ pkgdesc = Microsoft Windows 10 Simplified Chinese TrueType fonts
+
+pkgname = ttf-ms-win10-zh_tw
+ pkgdesc = Microsoft Windows 10 Traditional Chinese TrueType fonts
+
+pkgname = ttf-ms-win10-other
+ pkgdesc = Microsoft Windows 10 Other TrueType fonts
diff --git a/PKGBUILD b/PKGBUILD
index 2b5e4a1bfe5..65a44220723 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,11 +5,6 @@
# This PKGBUILD is maintained on github:
# https://github.com/michaellass/AUR
-# This is a very basic package for installing the fonts provided with Windows
-# 10. There are much more fancy packages available in the AUR for win7, win8
-# and office fonts. If any of those maintainers want to tweak this package
-# accordingly, I will happily give them permissions to do so.
-
# Instructions were copied from ttf-ms-win8 and slightly modified:
#
# BUILD INSTRUCTIONS:
@@ -49,17 +44,17 @@
# You need the files listed in the source=() array. Place them in the same
# directory as this PKGBUILD file, then run makepkg.
-pkgname=ttf-ms-win10
+pkgbase=ttf-ms-win10
+pkgname=($pkgbase{,-japanese,-korean,-sea,-thai,-zh_cn,-zh_tw,-other})
pkgver=10.0.10240
-pkgrel=2
-pkgdesc='Microsoft Windows 10 TrueType fonts'
+pkgrel=3
arch=(any)
url='http://www.microsoft.com/typography/fonts/product.aspx?PID=164'
license=(custom)
depends=(fontconfig xorg-fonts-encodings xorg-mkfontscale xorg-mkfontdir)
-provides=(ttf-font ttf-tahoma ttf-{ms,vista,win7}-fonts ttf-ms-win8{,-arabic,-hebrew,-indic,-japanese,-korean,-other,-sea,-thai,-zh_cn,-zh_tw})
-conflicts=(ttf-tahoma ttf-{ms,vista,win7}-fonts ttf-ms-win8{,-arabic,-hebrew,-indic,-japanese,-korean,-other,-sea,-thai,-zh_cn,-zh_tw})
-install=$pkgname.install
+provides=(ttf-font ttf-ms-fonts)
+conflicts=(ttf-{ms,vista,win7}-fonts)
+install=$pkgbase.install
_ttf_ms_win10=(
#########################################################################################
@@ -176,16 +171,15 @@ gadugi.ttf gadugib.ttf # Gadugi
mvboli.ttf # MV Boli
)
-_fonts=(${_ttf_ms_win10[@]}
- ${_ttf_ms_win10_japanese[@]}
- ${_ttf_ms_win10_korean[@]}
- ${_ttf_ms_win10_sea[@]}
- ${_ttf_ms_win10_thai[@]}
- ${_ttf_ms_win10_zh_cn[@]}
- ${_ttf_ms_win10_zh_tw[@]}
- ${_ttf_ms_win10_other[@]})
-
-source=(${_fonts[@]/#/file://} file://license.rtf)
+source=(${_ttf_ms_win10[@]/#/file://}
+ ${_ttf_ms_win10_japanese[@]/#/file://}
+ ${_ttf_ms_win10_korean[@]/#/file://}
+ ${_ttf_ms_win10_sea[@]/#/file://}
+ ${_ttf_ms_win10_thai[@]/#/file://}
+ ${_ttf_ms_win10_zh_cn[@]/#/file://}
+ ${_ttf_ms_win10_zh_tw[@]/#/file://}
+ ${_ttf_ms_win10_other[@]/#/file://}
+ file://license.rtf)
sha256sums=('95766b58f7d869b0fa2cf6e6feb26c1b21cdf2631f1c5863fc9bd206d5c6e8ee'
'61daedc4107c937e66911b8184688601ac70f9c27f19d069c3b38f892fa314e4'
@@ -325,12 +319,56 @@ sha256sums=('95766b58f7d869b0fa2cf6e6feb26c1b21cdf2631f1c5863fc9bd206d5c6e8ee'
'90aa8461b7d61e350495584e0ffcc3a5a3168048605e14b2fedb193b38012962'
SKIP)
-package() {
- for font in ${_fonts[@]}; do
+_package() {
+ conflicts+=(${pkgname/10/8})
+
+ for font in $@; do
install -Dm644 $font -t "$pkgdir/usr/share/fonts/TTF"
done
install -Dm644 license.rtf -t "$pkgdir/usr/share/licenses/$pkgname"
}
+package_ttf-ms-win10() {
+ pkgdesc='Microsoft Windows 10 TrueType fonts'
+ provides+=('ttf-tahoma')
+ conflicts+=('ttf-tahoma')
+ _package ${_ttf_ms_win10[@]}
+}
+
+package_ttf-ms-win10-japanese() {
+ pkgdesc='Microsoft Windows 10 Japanese TrueType fonts'
+ _package ${_ttf_ms_win10_japanese[@]}
+}
+
+package_ttf-ms-win10-korean() {
+ pkgdesc='Microsoft Windows 10 Korean TrueType fonts'
+ _package ${_ttf_ms_win10_korean[@]}
+}
+
+package_ttf-ms-win10-sea() {
+ pkgdesc='Microsoft Windows 10 Southeast Asian TrueType fonts'
+ _package ${_ttf_ms_win10_sea[@]}
+}
+
+package_ttf-ms-win10-thai() {
+ pkgdesc='Microsoft Windows 10 Thai TrueType fonts'
+ _package ${_ttf_ms_win10_thai[@]}
+}
+
+package_ttf-ms-win10-zh_cn() {
+ pkgdesc='Microsoft Windows 10 Simplified Chinese TrueType fonts'
+ _package ${_ttf_ms_win10_zh_cn[@]}
+}
+
+package_ttf-ms-win10-zh_tw() {
+ pkgdesc='Microsoft Windows 10 Traditional Chinese TrueType fonts'
+ _package ${_ttf_ms_win10_zh_tw[@]}
+}
+
+package_ttf-ms-win10-other() {
+ pkgdesc='Microsoft Windows 10 Other TrueType fonts'
+ _package ${_ttf_ms_win10_other[@]}
+}
+
# vim: ts=4 sw=4 et