mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 09:04:36 +08:00
34 lines
940 B
Bash
34 lines
940 B
Bash
# Contributor: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
pkgname=ttf-noto-emoji
|
|
_pkgver=2015-09-29
|
|
pkgver=${_pkgver//-}
|
|
pkgrel=1
|
|
pkgdesc="Google Noto emoji fonts"
|
|
arch=(any)
|
|
url="https://www.google.com/get/noto/"
|
|
license=(Apache)
|
|
depends=(fontconfig)
|
|
makedepends=(cairo optipng python2-fonttools nototools)
|
|
install=$pkgname.install
|
|
source=("https://github.com/googlei18n/noto-emoji/archive/v$_pkgver-license-apache.tar.gz")
|
|
sha256sums=('22d40e3b2a9f3f4dc0f1e758c2be8513e3e1a9d8843056466d7595b5476dbb86')
|
|
|
|
prepare() {
|
|
cd noto-emoji-*
|
|
find -name '*.py' | xargs sed -e 's|/usr/bin/env python|/usr/bin/env python2|' -i
|
|
sed -e 's|python|python2|g' -e 's|ttx "$<"|ttx2 "$<"|g' -i Makefile
|
|
ln -rs add_emoji_gsub.py third_party/color_emoji/
|
|
}
|
|
|
|
build() {
|
|
cd noto-emoji-*
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd noto-emoji-*
|
|
mkdir -p "$pkgdir"/usr/share/fonts/noto
|
|
install -m644 NotoColorEmoji.ttf NotoEmoji-Regular.ttf "$pkgdir"/usr/share/fonts/noto
|
|
}
|