summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b04728cbd200ae55bd89b9f12da39bf2d89c051a (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
40
41
42
43
# Maintainer: AtticFinder65536 <atticventilation-aur at protonmail dot com>

pkgname=('ttf-twemoji-color-git')
_gitname=('twemoji-color-font')
pkgver=14.0.2.r0.ge451b5d
pkgrel=1
epoch=1
pkgdesc="A color and B&W emoji SVG-in-OpenType font by Twitter with support for ZWJ, skin tone modifiers and country flags (git)"
url="https://github.com/eosrei/twemoji-color-font"
license=('custom:CCPL:by-4.0' 'MIT')
source=('git+https://github.com/eosrei/twemoji-color-font.git'
	'git+https://github.com/13rac1/scfbuild.git')
b2sums=('SKIP'
	'SKIP')
makedepends=('git' 'inkscape' 'imagemagick' 'potrace' 'python-fonttools' 'fontforge' 'svgo' 'nodejs' 'python-yaml')
arch=('any')
replaces=('twemoji-color-font')
provides=('twemoji-color-font' 'ttf-twemoji-color' 'emoji-font')
conflicts=('twemoji-color-font' 'ttf-twemoji-color')

pkgver() {
  cd "$_gitname"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare(){
	cd "${_gitname}"
	ln -s "${srcdir}"/scfbuild SCFBuild
	sed -i 's/package: regular-package linux-package deb-package macos-package windows-package/package: linux-package/' Makefile
}

build(){
	cd "${_gitname}"
	make
}

package(){
	cd "${_gitname}"/build/TwitterColorEmoji-SVGinOT-Linux-14.0.2
	install -Dm644 TwitterColorEmoji-SVGinOT.ttf -t "$pkgdir"/usr/share/fonts/TTF/
	install -Dm644 LICENSE* -t "$pkgdir"/usr/share/licenses/$pkgname/
	install -Dm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname/
}