summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ded2a3de36bf11afc192accd6bf623b6dbe4a1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Javier Fernández <WyRe12[at]gmail[dot]com>

pkgname=pixeled-ttf
pkgver=1.0
pkgrel=1
pkgdesc="Pixeled font from http://www.dafont.com"
arch=(any)
url="http://www.dafont.com/es/pixeled.font"
license=('custom:fontstruct')
depends=('fontconfig' 'xorg-font-utils' 'unzip')
provides=('ttf-font')
source=("$pkgname.zip::http://dl.dafont.com/dl/?f=pixeled")
noextract=("$pkgname.zip")
install=$pkgname.install
md5sums=('4aeadb1eeb639b12a439647da4d591b9')

prepare() {
  unzip -o -j -LL -qq $pkgname.zip -d $srcdir/$pkgname/
}

package() {
  
  # Installing font
  chmod 644 "$srcdir/$pkgname/"*.ttf
  install -dm755 "$pkgdir/usr/share/fonts/TTF"
  cp -dpr --no-preserve=ownership "$srcdir/$pkgname/"*.ttf "$pkgdir/usr/share/fonts/TTF/"

  # License
  cd $srcdir
  install -Dm644 "$srcdir/$pkgname/"license.txt \
    "$pkgdir/usr/share/licenses/$pkgname/license.txt"
}