Last active
January 16, 2021 08:21
-
-
Save Riey/1067a0e3c7b83d4a3cbe60a3f6b9a931 to your computer and use it in GitHub Desktop.
kime-git-pkgbuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: riey <creeper844@gmail.com> | |
pkgname=kime-git | |
pkgver=0.4.1.184.gc9740f9 | |
pkgrel=1 | |
pkgdesc="Korean IME" | |
url="https://github.com/Riey/kime" | |
conflicts=('kime') | |
provides=('kime') | |
depends=('gtk3' 'cairo' 'libxkbcommon' 'libxcb' 'pango') | |
makedepends=('cargo') | |
arch=('any') | |
license=('GPL3') | |
source=("${pkgname}::git+${url}") | |
sha512sums=('SKIP') | |
pkgver() { | |
cd "${pkgname}" | |
echo $(grep '^version =' gtk3/Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git describe --always) | |
} | |
build() { | |
cd "${pkgname}" | |
./release.sh | |
} | |
package() { | |
cd "${pkgname}/build" | |
install -Dm755 kime-xim -t "${pkgdir}/usr/bin" | |
install -Dm755 im-kime.so -t "${pkgdir}/usr/lib/gtk-3.0/3.0.0/immodules" | |
install -Dm755 libkime_engine.so -t "${pkgdir}/usr/lib" | |
install -Dm644 kime_engine.h -t "${pkgdir}/usr/include/kime" | |
# install -Dm644 config.yaml -t "${pkgdir}/etc/kime" | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment