summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e58d370ff7e7aedea4340f18813279f7d496ee4b (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
33
34
35
36
37
38
39
# Maintainer: Paul Dann <pdgiddie+archlinux@gmail.com>
pkgname=fontconfig-emoji-git
pkgver=r9.ced1758
pkgrel=1
epoch=
pkgdesc="Fontconfig configuration for emojis"
arch=('any')
url="https://github.com/stove-panini/fontconfig-emoji"
license=()
groups=()
depends=('ttf-bitstream-vera')
makedepends=('git')
checkdepends=()
optdepends=('noto-fonts-emoji')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/stove-panini/fontconfig-emoji")
noextract=()
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/${pkgname%-git}"
  mkdir -p $pkgdir/etc/fonts/conf.avail
  mkdir -p $pkgdir/etc/fonts/conf.d
  cp *.conf $pkgdir/etc/fonts/conf.avail/
  for file in *.conf; do
    ln -s ../conf.avail/"$(basename $file)" $pkgdir/etc/fonts/conf.d
  done
}