# Maintainer: AtticFinder65536 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/ }