blob: 1dcb80d6f409b2910ead97dcc78978a6327f8b21 (
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
|
# Maintainer: RiverOnVenus <error@zhui.dev>
# Contributor: Yufan You <ouuansteve at gmail>
_pkgname=kawaii-gcc
pkgname="$_pkgname-zh-cn-git"
pkgver=r24.fbfb66a
pkgrel=1
provides=("$_pkgname")
pkgdesc='GCCコンパイラーを可愛くしましょう!Make your GCC compiler kawaii. '
arch=(any)
url='https://github.com/Bill-Haku/kawaii-gcc'
license=(GPL3)
makedepends=(git gettext)
install=${pkgname}.install
source=("git+${url}")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd "$_pkgname"
make merge-zh
msgfmt gcc-zh.po -o gcc.mo
}
package() {
cd "$_pkgname"
install -Dm644 gcc.mo -t "$pkgdir/usr/share/locale/zh_CN_kawaii/LC_MESSAGES"
}
|