Last active
May 16, 2018 13:04
-
-
Save amiad/087c730ab265e1f96f10a0ee8513ddc6 to your computer and use it in GitHub Desktop.
Revisions
-
amiad revised this gist
May 16, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ source=( ) sha256sums=('b13e7463ede5e56da79892e6a22eaca8ae3e0fc34a30fcf7417412a45dee072c' '6ba13854700bd9cdf6b8facd920082aed367bedabe10e93bd39cfe6bf8eb76fd' 'aff4200cb84019c1707c8b35ade51f9b2480996cc907ce4de49b28ae28b1f02a' ) build() { -
amiad created this gist
Mar 20, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,53 @@ # Maintainer: Ivan Puntiy <ivan.puntiy at gmail> # Contributor: <francois.archlinux.org> pkgname=culmus pkgver=0.132 pkgrel=1.5 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') makedepends=('fontforge') source=( "http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz" "$pkgname-0.121-fontconfig_fix.patch" "font2ttf.sh" ) sha256sums=('b13e7463ede5e56da79892e6a22eaca8ae3e0fc34a30fcf7417412a45dee072c' '6ba13854700bd9cdf6b8facd920082aed367bedabe10e93bd39cfe6bf8eb76fd' '591af888de9bffc21349c2a0eaa7d3a35514bed5e47b063a2937ddc660c9ed84' ) 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 -m755 -d "${pkgdir}/usr/share/fonts/Type1" install -m644 "${srcdir}/culmus-$pkgver/"*.{afm,pfa} \ "${pkgdir}/usr/share/fonts/Type1" # install ttf fonts pushd "${srcdir}/culmus-${pkgver}/" for i in *.{otf,pfa}; do fontforge -script ../../font2ttf.sh $i; done popd install -m755 -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 -m755 -d "${pkgdir}/etc/fonts/conf.avail/" install -m644 "${srcdir}/culmus-${pkgver}/culmus.conf" \ "${pkgdir}/etc/fonts/conf.avail/61-culmus.conf" # symlink for the abovementioned config file install -m755 -d "${pkgdir}/etc/fonts/conf.d" ln -fs "../conf.avail/61-culmus.conf" "${pkgdir}/etc/fonts/conf.d/" } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ #!/usr/local/bin/fontforge # Quick and dirty hack: converts a font to truetype (.ttf) Print("Opening "+$1); Open($1); Print("Saving "+$1:r+".ttf"); Generate($1:r+".ttf"); Quit(0);