From 54dcfb85d14c150b312cd932aed940c19bb05251 Mon Sep 17 00:00:00 2001 From: Alon Ivtsan Date: Tue, 16 Jul 2013 03:06:45 +0300 Subject: Adding culmus, patch and install file --- pcr/culmus/PKGBUILD | 44 ++++++ pcr/culmus/culmus-0.121-fontconfig_fix.patch | 203 +++++++++++++++++++++++++++ pcr/culmus/culmus.install | 41 ++++++ 3 files changed, 288 insertions(+) create mode 100644 pcr/culmus/PKGBUILD create mode 100644 pcr/culmus/culmus-0.121-fontconfig_fix.patch create mode 100644 pcr/culmus/culmus.install diff --git a/pcr/culmus/PKGBUILD b/pcr/culmus/PKGBUILD new file mode 100644 index 000000000..e7efc2adc --- /dev/null +++ b/pcr/culmus/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer (Arch): Ivan Puntiy +# Contributor (Arch): +# Maintainer (Parabola): Alon Ivtsan +# taken from https://aur.archlinux.org/packages/culmus/ + +pkgname=culmus +pkgver=0.130 +pkgrel=1 +pkgdesc="A collection of Type1 and TrueType Hebrew fonts" +arch=('any') +url="http://culmus.sourceforge.net" +license=('GPL2') +depends=('fontconfig' 'xorg-fonts-alias' 'xorg-font-utils' 'xorg-fonts-encodings') +install=${pkgname}.install +source=( + "http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz" + "$pkgname-0.121-fontconfig_fix.patch" +) +md5sums=('58e672defde4caeae42017cd2f9436a6' + '6db715a072d9602a54c69a7e31a6428f') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # fix due to fontconfig 2.10.1 update - patch mailed to upstream + patch culmus.conf "$srcdir/$pkgname-0.121-fontconfig_fix.patch" +} + +package() { + # install Type1 fonts + install -d ${pkgdir}/usr/share/fonts/Type1 + install -m644 ${srcdir}/culmus-$pkgver/*.{afm,pfa} \ + ${pkgdir}/usr/share/fonts/Type1 + + # install ttf fonts + install -d ${pkgdir}/usr/share/fonts/TTF + install -m644 ${srcdir}/culmus-$pkgver/*.ttf \ + ${pkgdir}/usr/share/fonts/TTF + + # install provided config file with priority 61 + install -d ${pkgdir}/etc/fonts/conf.avail/ + install -m644 ${srcdir}/culmus-$pkgver/culmus.conf \ + ${pkgdir}/etc/fonts/conf.avail/61-culmus.conf +} diff --git a/pcr/culmus/culmus-0.121-fontconfig_fix.patch b/pcr/culmus/culmus-0.121-fontconfig_fix.patch new file mode 100644 index 000000000..d303cbb09 --- /dev/null +++ b/pcr/culmus/culmus-0.121-fontconfig_fix.patch @@ -0,0 +1,203 @@ +--- culmus.conf.original 2011-12-20 22:21:43.509488367 +0200 ++++ culmus.conf.fixed 2012-09-09 21:14:42.401273058 +0300 +@@ -8,6 +8,17 @@ + + + Guttman Adii ++ ++ ++ David CLM ++ ++ ++ italic ++ ++ ++ ++ ++ + Guttman Adii-Light + + +@@ -30,6 +41,14 @@ + + + Guttman Stam ++ ++ ++ Stam Ashkenaz CLM ++ ++ ++ ++ ++ + Guttman Stam1 + + +@@ -40,6 +59,14 @@ + + + Guttman Hodes ++ ++ ++ Hadasim CLM ++ ++ ++ ++ ++ + Monotype Hadassah + + +@@ -50,7 +77,23 @@ + + + Aharoni ++ ++ ++ Aharoni CLM ++ ++ ++ ++ ++ + Guttman Aharoni ++ ++ ++ Aharoni CLM ++ ++ ++ ++ ++ + Guttman-Aharoni + + +@@ -61,7 +104,23 @@ + + + FrankRuehl ++ ++ ++ Frank Ruehl CLM ++ ++ ++ ++ ++ + Guttman Frank ++ ++ ++ Frank Ruehl CLM ++ ++ ++ ++ ++ + Guttman Frnew + + +@@ -72,7 +131,23 @@ + + + David ++ ++ ++ David CLM ++ ++ ++ ++ ++ + David Transparent ++ ++ ++ David CLM ++ ++ ++ ++ ++ + Guttman David + + +@@ -83,8 +158,32 @@ + + + Fixed Miriam Transparent ++ ++ ++ Miriam Mono CLM ++ ++ ++ ++ ++ + Guttman Myamfix ++ ++ ++ Miriam Mono CLM ++ ++ ++ ++ ++ + Guttman-CourMir ++ ++ ++ Miriam Mono CLM ++ ++ ++ ++ ++ + Miriam Fixed + + +@@ -95,8 +194,32 @@ + + + Guttman Miryam ++ ++ ++ Miriam CLM ++ ++ ++ ++ ++ + Levenim MT ++ ++ ++ Miriam CLM ++ ++ ++ ++ ++ + Miriam ++ ++ ++ Miriam CLM ++ ++ ++ ++ ++ + Miriam Transparent + + +@@ -107,6 +230,14 @@ + + + Guttman Drogolin ++ ++ ++ Drugulin CLM ++ ++ ++ ++ ++ + Guttman Vilna + + diff --git a/pcr/culmus/culmus.install b/pcr/culmus/culmus.install new file mode 100644 index 000000000..1376ca5ce --- /dev/null +++ b/pcr/culmus/culmus.install @@ -0,0 +1,41 @@ +configs=('61-culmus.conf') + +update_fontcache() { + fc-cache -fs + mkfontscale /usr/share/fonts/Type1 + mkfontdir /usr/share/fonts/Type1 + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF +} + +post_install() { + pushd /etc/fonts/conf.d > /dev/null + for config in "${configs[@]}"; do + ln -sf ../conf.avail/${config} . + done + popd > /dev/null + + update_fontcache +} + +post_upgrade() { + if [ "`vercmp 0.102-1 $2`" != "-1" ] || [ ! -L /etc/fonts/conf.d/61-culmus.conf ]; then + pushd /etc/fonts/conf.d > /dev/null + for config in "${configs[@]}"; do + ln -sf ../conf.avail/${config} . + done + popd > /dev/null + fi + + update_fontcache +} + +post_remove() { + pushd /etc/fonts/conf.d > /dev/null + for config in "${configs[@]}"; do + rm -f ${config} + done + popd > /dev/null + + update_fontcache +} -- cgit v1.2.3-2-g168b