summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d95971c7a2ea859cbe3e27017f53c308e749f29 (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: Wu Xiaotian <xiaotian.wu@i-soft.com.cn>
pkgname=bash-pinyin-completion
pkgver=r18.66c9ba5
pkgrel=1
pkgdesc="complete path name based upon the pinyin acronym of Chinese characters"
arch=(x86_64)
url="https://github.com/emptyhua/bash-pinyin-completion"
license=('GPL')
depends=('bash-completion')
makedepends=('gcc' 'git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('bash-pinyin-completion::git+https://github.com/emptyhua/bash-pinyin-completion.git')
noextract=()
md5sums=('SKIP')

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

build() {
	cd "$srcdir/${pkgname%-git}"
	make
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir/" install
}