summaryrefslogtreecommitdiff
path: root/libre/xorg-fonts-type1
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-04 03:37:40 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-04 03:37:40 -0300
commitc54c235da9f4322a2ad352fd43c5bc875f1daf2d (patch)
tree780eb64b944e4b6cb4f249ce471c16ac3d025657 /libre/xorg-fonts-type1
parent05fff056ef7ee87f9c44f99a25411767c6375f6e (diff)
downloadabslibre-c54c235da9f4322a2ad352fd43c5bc875f1daf2d.tar.gz
abslibre-c54c235da9f4322a2ad352fd43c5bc875f1daf2d.tar.bz2
abslibre-c54c235da9f4322a2ad352fd43c5bc875f1daf2d.zip
xorg-fonts-{{100,75}dpi,type1}: remove libre suffix and add complex pkgrel
Diffstat (limited to 'libre/xorg-fonts-type1')
-rw-r--r--libre/xorg-fonts-type1/PKGBUILD45
-rw-r--r--libre/xorg-fonts-type1/xfonts.install15
2 files changed, 60 insertions, 0 deletions
diff --git a/libre/xorg-fonts-type1/PKGBUILD b/libre/xorg-fonts-type1/PKGBUILD
new file mode 100644
index 000000000..95766fb20
--- /dev/null
+++ b/libre/xorg-fonts-type1/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 216282 2014-07-02 16:41:27Z fyan $
+# Maintainer (Arch): Jan de Groot <jgc@archlinux.org>
+
+pkgname=xorg-fonts-type1
+pkgver=7.4
+pkgrel=3.parabola1
+pkgdesc="X.org Type1 fonts, without nonfree fonts"
+arch=(any)
+license=('custom')
+url="http://xorg.freedesktop.org/"
+depends=(xorg-fonts-encodings xorg-fonts-alias xorg-font-utils fontconfig)
+conflicts=('xorg-fonts-type1-libre')
+replaces=('xorg-fonts-type1-libre')
+install=xfonts.install
+source=(${url}/releases/individual/font/font-bitstream-type1-1.0.2.tar.bz2
+ ${url}/releases/individual/font/font-xfree86-type1-1.0.3.tar.bz2)
+md5sums=('27c55f6a938e7153c59fb551b2f491f9'
+ 'df934bfc0339322cee73ee3c5460a648')
+
+build() {
+ cd "${srcdir}"
+ for dir in *; do
+ if [ -d "${dir}" ]; then
+ pushd "${dir}"
+ ./configure --prefix=/usr \
+ --with-fontdir=/usr/share/fonts/Type1
+ make
+ popd
+ fi
+ done
+}
+
+package() {
+ cd "${srcdir}"
+ install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ for dir in *; do
+ if [ -d "${dir}" ]; then
+ pushd "${dir}"
+ make DESTDIR="${pkgdir}" install
+ install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.${dir%-*}"
+ popd
+ fi
+ done
+ rm -f "${pkgdir}"/usr/share/fonts/Type1/fonts.*
+}
diff --git a/libre/xorg-fonts-type1/xfonts.install b/libre/xorg-fonts-type1/xfonts.install
new file mode 100644
index 000000000..51688a1d1
--- /dev/null
+++ b/libre/xorg-fonts-type1/xfonts.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -f > /dev/null
+ mkfontscale /usr/share/fonts/Type1
+ mkfontdir /usr/share/fonts/Type1
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}