# Maintainer: Chocobo1 pkgname=chewing-editor pkgver=0.0.2 pkgrel=1 pkgdesc="Cross platform chewing user phrase editor" arch=('i686' 'x86_64') url="http://chewing.im" license=('GPL') depends=('libchewing' 'qt5-base' 'hicolor-icon-theme') makedepends=('cmake' 'qt5-tools') install=$pkgname.install source=("https://github.com/chewing/$pkgname/archive/$pkgver.tar.gz") sha256sums=('1ce0a98d7cbabe3d03d8dcc9bd1b0a05b8dd37d069b60cbf83bd4cef99939367') prepare() { cd "$srcdir/$pkgname-$pkgver" mkdir build } build() { cd "$srcdir/$pkgname-$pkgver/build" cmake ../ -DCMAKE_INSTALL_PREFIX='/usr' make } check() { cd "$srcdir/$pkgname-$pkgver/build" ./run-test } package() { cd "$srcdir/$pkgname-$pkgver/build" make DESTDIR="$pkgdir" install install -Dm644 ../COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" }