diff options
author | Chih-Hsuan Yen | 2018-09-14 22:59:36 +0800 |
---|---|---|
committer | Chih-Hsuan Yen | 2018-09-14 22:59:36 +0800 |
commit | 548a0bb6e96ab4baa0fde8e44e71b259ef1cd553 (patch) | |
tree | e97d7c1d55876612ae1c8b4ffa17f69f0b05189e | |
parent | 5d0fc8d9571cb50bd604dfd761bb00b18f5d7323 (diff) | |
download | aur-fcitx-chewing-git.tar.gz |
misc changes/improvements
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 25 insertions, 15 deletions
@@ -1,16 +1,16 @@ pkgbase = fcitx-chewing-git pkgdesc = Fcitx Wrapper for chewing pkgver = 0.2.3.r4.ge4bb273 - pkgrel = 3 + pkgrel = 4 url = https://gitlab.com/fcitx/fcitx-chewing arch = i686 arch = x86_64 - license = GPL + license = GPL2 makedepends = cmake makedepends = git depends = libchewing-git depends = fcitx - provides = fcitx-chewing + provides = fcitx-chewing=0.2.3.r4.ge4bb273 conflicts = fcitx-chewing source = git+https://gitlab.com/fcitx/fcitx-chewing.git md5sums = SKIP @@ -1,37 +1,47 @@ -# $Id$ -# Maintainer: Felix Yan <felixonmars@gmail.com> +# Maintainer: Chih-Hsuan Yen <yan12125@gmail.com> +# Forked from community/fcitx-chewing; original contributors: +# Contributor: Felix Yan <felixonmars@gmail.com> _pkgname=fcitx-chewing -pkgname=${_pkgname}-git +pkgname=$_pkgname-git pkgver=0.2.3.r4.ge4bb273 -pkgrel=3 +pkgrel=4 pkgdesc='Fcitx Wrapper for chewing' arch=(i686 x86_64) url='https://gitlab.com/fcitx/fcitx-chewing' -license=(GPL) +license=(GPL2) depends=(libchewing-git fcitx) makedepends=(cmake git) source=("git+https://gitlab.com/fcitx/fcitx-chewing.git") md5sums=('SKIP') -conflicts=("${_pkgname}") -provides=("${_pkgname}") +conflicts=("$_pkgname") +provides=("$_pkgname=$pkgver") pkgver() { cd $_pkgname ( set -o pipefail - git describe --long --tag 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' || - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + git describe --long --tag 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' ) } +prepare() { + cd $_pkgname + + mkdir -p build +} + build() { - cd ${_pkgname} + cd $_pkgname/build + + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + .. - cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release . make } package() { - cd ${_pkgname} + cd $_pkgname/build + make DESTDIR="$pkgdir" install } |