summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0066243417c1da4f1b4217c1e3faf1f7f7269c4c (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
#Maintainer: Felix Yan <felixonmars@gmail.com>

pkgname=fcitx-tsundere-git
_gitname=fcitx-tsundere
pkgver=0.7.2aba36d
pkgrel=1
pkgdesc="Tsundere module for fcitx, adds something following every character you input."
arch=('i686' 'x86_64')
url="https://github.com/felixonmars/fcitx-tsundere"
license=('GPL')
depends=('fcitx>=4.2.7')
makedepends=('cmake' 'git')
source=('git://github.com/felixonmars/fcitx-tsundere.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_gitname"
  echo "0.$(git rev-list --count HEAD).$(git describe --always)"
}

build() {
  cd "$srcdir/$_gitname"
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
  make
}

package() {
  cd "$srcdir/$_gitname"
  make DESTDIR="${pkgdir}" install
}