summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ded9c7102bda419a7acf2a42589aca667ddaca4 (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
33
34
# Maintainer: Coelacanthus <liuhongwu2003@outlook.com>

pkgname=rime-lua-hook-git
pkgver=r2.4d04015
pkgrel=1
pkgdesc="Pacman hook to merge rime lua plugin"
arch=('any')
url="https://github.com/ayalhw/rime-lua-hook"
license=('MIT')
depends=('bash' 'librime')
makedepends=('git')
provides=('rime-lua-hook')
conflicts=('rime-lua-hook')
source=(
    "rime-lua-hook::git+https://github.com/ayalhw/rime-lua-hook.git"
)
sha256sums=('SKIP')

pkgver() {
    cd $srcdir/rime-lua-hook
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd $srcdir/rime-lua-hook

    install -Dm644 rime-lua.hook "$pkgdir/usr/share/libalpm/hooks/rime-lua.hook"
    install -Dm755 rime-lua "$pkgdir/usr/share/libalpm/scripts/rime-lua"

    #install -Dm644 README.md "$pkgdir/usr/share/doc/rime-lua-hook/README.md"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/rime-lua-hook/LICENSE"
}

# vim: set ts=4 sw=4 et: