|
- # Maintainer : Mark Lam <Mark.JLam@gmail.com>
- pkgname=wqy-bitmapfont
- pkgver=0.6.0
- pkgrel=1
- pkgdesc=" High-quality CJK bitmap fonts"
- url="http://wqy.sourceforge.net"
- depends=("x-server")
- install=font.install
- source=(http://jaist.dl.sourceforge.net/sourceforge/wqy/$pkgname-pcf-$pkgver.tar.gz)
- build() {
- cd $startdir/src/$pkgname
- mkdir -p $startdir/pkg/usr/X11R6/lib/X11/fonts/wqy
- cp *.pcf $startdir/pkg/usr/X11R6/lib/X11/fonts/wqy
- }
- md5sums=('5daa79c48cc0e30713134c28ba5d9911')
复制代码
font.install
- # arg 1: the new package version
- post_install() {
- echo -n "Updating font cache... "
- /usr/bin/fc-cache
- cd /usr/X11R6/lib/X11/fonts/wqy
- /usr/X11R6/bin/mkfontdir
- cp ./fonts.dir fonts.scale
- cp ../encodings/encodings.dir ./encodings.dir
- echo "done."
- }
- # arg 1: the new package version
- # arg 2: the old package version
- post_upgrade() {
- post_install $1
- }
- # arg 1: the old package version
- post_remove() {
- post_install $1
- }
- op=$1
- shift
- $op $*
复制代码 |
|