initial import
This commit is contained in:
47
xenocara-mkfontscale/PKGBUILD
Normal file
47
xenocara-mkfontscale/PKGBUILD
Normal file
@@ -0,0 +1,47 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
# Based on xorg-mkfontscale package
|
||||
|
||||
pkgname=xenocara-mkfontscale
|
||||
_openbsdver=6.9
|
||||
pkgver=1.2.1
|
||||
pkgrel=5
|
||||
pkgdesc="Create an index of scalable font files for X, provided by Xenocara"
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://www.xenocara.org'
|
||||
license=('Expat')
|
||||
depends=('freetype2' 'libfontenc')
|
||||
makedepends=('xenocara-util-macros' 'xenocara-proto')
|
||||
groups=('xenocara-apps' 'xenocara' 'xorg-apps' 'xorg')
|
||||
provides=('xorg-mkfontscale' 'xorg-mkfontdir')
|
||||
conflicts=('xorg-mkfontscale' 'xorg-mkfontdir')
|
||||
replaces=('xorg-mkfontscale' 'xorg-mkfontdir')
|
||||
source=(https://repo.hyperbola.info:50000/sources/xenocara-libre/$_openbsdver/app/mkfontscale-$pkgver.tar.lz{,.sig}
|
||||
xenocara-mkfontscale.hook
|
||||
xenocara-mkfontscale.script)
|
||||
sha512sums=('10483518d200e28928b2dc05bd1de7f18011a06f9b2628afa7114ffbd4df60c015c1fdf9914d46489cc62ce99af70eabaa44d7f4eb6289a3e241e49be9e5485d'
|
||||
'SKIP'
|
||||
'8b5401d55c0248d36721a5e2de06c0886241fee5615ba9b83fab5c59afa998c63bd77b83dcd7b7556b1f8e1c91a6fc06f1a89dbed46ed8ca146ca5fcfde93d10'
|
||||
'744f639d9a3d9e88985ecc86861f4b4959362dd6fe46af73af064a312e0c9a00a1d84a95e0725549fcdc32eb0b7d6a8709c4c2cf4c2e206c365c6bacf215a9d9')
|
||||
validpgpkeys=('C92BAA713B8D53D3CAE63FC9E6974752F9704456') # André Silva
|
||||
|
||||
prepare() {
|
||||
cd "xenocara-$_openbsdver/app/mkfontscale"
|
||||
autoreconf -vfi
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "xenocara-$_openbsdver/app/mkfontscale"
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "xenocara-$_openbsdver/app/mkfontscale"
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
install -Dm644 "$srcdir/xenocara-mkfontscale.hook" "$pkgdir/usr/share/libalpm/hooks/xenocara-mkfontscale.hook"
|
||||
install -Dm755 "$srcdir/xenocara-mkfontscale.script" "$pkgdir/usr/share/libalpm/scripts/xenocara-mkfontscale"
|
||||
|
||||
install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
||||
13
xenocara-mkfontscale/xenocara-mkfontscale.hook
Normal file
13
xenocara-mkfontscale/xenocara-mkfontscale.hook
Normal file
@@ -0,0 +1,13 @@
|
||||
[Trigger]
|
||||
Type = File
|
||||
Operation = Install
|
||||
Operation = Upgrade
|
||||
Operation = Remove
|
||||
Target = usr/share/fonts/*/
|
||||
Target = !usr/share/fonts/encodings/*
|
||||
|
||||
[Action]
|
||||
Description = Updating X fontdir indices...
|
||||
When = PostTransaction
|
||||
Exec = /usr/share/libalpm/scripts/xenocara-mkfontscale
|
||||
NeedsTargets
|
||||
9
xenocara-mkfontscale/xenocara-mkfontscale.script
Normal file
9
xenocara-mkfontscale/xenocara-mkfontscale.script
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
sort -r | while read -r d; do
|
||||
[[ -d $d ]] || continue
|
||||
mkfontscale "$d"
|
||||
mkfontdir "$d"
|
||||
find "$d"fonts.{scale,dir} -maxdepth 0 -size -3c -delete
|
||||
rmdir --ignore-fail-on-non-empty "$d"
|
||||
done
|
||||
Reference in New Issue
Block a user