core/ttf-noto-emoji/PKGBUILD

33 lines
787 B
Bash
Raw Normal View History

2015-12-18 06:57:57 +08:00
# Contributor: Antonio Rojas <arojas@archlinux.org>
pkgname=ttf-noto-emoji
2016-02-22 07:44:28 +08:00
_pkgver=2015-12-24
_commit=941712
2015-12-18 06:57:57 +08:00
pkgver=${_pkgver//-}
pkgrel=1
pkgdesc="Google Noto emoji fonts"
arch=(any)
url="https://www.google.com/get/noto/"
license=(Apache)
depends=(fontconfig)
2016-02-22 07:44:28 +08:00
makedepends=(cairo optipng python2-fonttools nototools imagemagick zopfli python2-setuptools)
2015-12-18 06:57:57 +08:00
install=$pkgname.install
2016-02-22 07:44:28 +08:00
source=("https://github.com/googlei18n/noto-emoji/archive/$_commit.zip")
md5sums=('ee5c7ba995682b98a9f9b55e5eb7c7d5')
2015-12-18 06:57:57 +08:00
prepare() {
cd noto-emoji-*
2016-02-22 07:44:28 +08:00
sed -e 's|ttx "$<"|ttx2 "$<"|g' -i Makefile
2015-12-18 06:57:57 +08:00
ln -rs add_emoji_gsub.py third_party/color_emoji/
}
build() {
cd noto-emoji-*
make
}
package() {
cd noto-emoji-*
2016-02-22 07:44:28 +08:00
install -Dm644 NotoColorEmoji.ttf "$pkgdir"/usr/share/fonts/TTF/NotoColorEmoji.ttf
2015-12-18 06:57:57 +08:00
}