# Maintainer: Ariel Lieberman #This package conflicts with culmus because it contains all culmus fonts as well. #If you find other conflicts you can remove those fonts from this PKGBUILD, #see the last line and an example were I removed Liberation fonts since they are contained in other packages. pkgname=opensiddur-hebrew-fonts pkgver=1.18.6 pkgrel=1 pkgdesc="The Open Siddur Project's open-source Unicode Hebrew font pack. Open-source licensed Unicode fonts in: Hebrew, Latin, Greek, Cyrillic, Arabic, and Amharic." url="https://github.com/aharonium/fonts" arch=(any) license=('GPL3' 'GPL-FE' 'custom:OFL' 'APACHE' 'UBL' 'LPPL' 'GPL2') depends=('fontconfig' 'xorg-fonts-alias' 'xorg-font-utils' 'xorg-fonts-encodings') #Confling packages whos fonts are contained in oppensiddur-hebrew-fonts conflicts=('culmus' 'ttf-sil-ezra' 'ttf-symbola') _sha=4cfe884b21bcc7d57b53eb276476b9f916e0a4b3 _zipname="$pkgname-$pkgver" source=("$_zipname.zip::https://github.com/aharonium/fonts/archive/$_sha.zip") sha256sums=('b7c064c7ff5d90debc6e21b6657fd1d75a551025e769f6a6ea958bc37ea1f71e') prepare() { find "${srcdir}" -type f ! -perm 644 -exec chmod 644 {} + } package() { cd $srcdir mkdir $pkgdir/usr/ mkdir $pkgdir/usr/share/ mkdir $pkgdir/usr/share/fonts/ mkdir $pkgdir/usr/share/fonts/TTF/ mkdir $pkgdir/usr/share/fonts/OTF/ find "${srcdir}" -type f -name "*.ttf" -exec cp "{}" $pkgdir/usr/share/fonts/TTF/ ";" find "${srcdir}" -type f -name "*.otf" -exec cp "{}" $pkgdir/usr/share/fonts/OTF/ ";" #remove Liberation to prevent conflict find "${pkgdir}" -type f -name "Liberation*" -exec rm "{}" ";" #install custom licences install -Dm644 "${srcdir}/fonts-${_sha}/LICENSES.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" #remove other font families buy running: # find "${pkgdir}" -type f -name "*" -exec rm "{}" ";" }