PKGBUILD 671 Bytes
Newer Older
Xuetian Weng's avatar
Xuetian Weng committed
1
pkgname=fcitx-libpinyin
2
pkgver=0.3.91
Adrián Chaves's avatar
Adrián Chaves committed
3
pkgrel=2
Xuetian Weng's avatar
Xuetian Weng committed
4
pkgdesc="Fcitx Wrapper for libpinyin."
gnastyle's avatar
gnastyle committed
5 6
arch=('x86_64')
url="https://fcitx-im.org/wiki/Fcitx"
Xuetian Weng's avatar
Xuetian Weng committed
7
license=('GPL')
8
depends=('fcitx>=4.2.8' 'libpinyin>=1.5.91' 'qt' 'qtwebkit')
9
makedepends=('cmake')
gnastyle's avatar
gnastyle committed
10
source=("http://download.fcitx-im.org/${pkgname}/${pkgname}-${pkgver}.tar.xz")
11
sha256sums=('b61fc7b5db73ae12af8738ef4de59ce25fdcce73296cd3cf2682cf8574b800a6')
Xuetian Weng's avatar
Xuetian Weng committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

build(){
    cd "$srcdir/${pkgname}-${pkgver}"
    rm -rf build
    mkdir build
    cd build
    
    cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
    make
}

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