# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=deepin-editor
pkgver=1.2.6.4
pkgrel=1
pkgdesc='Simple editor for Deepin'
arch=('x86_64')
url="https://github.com/linuxdeepin/deepin-editor"
license=('GPL3')
depends=('deepin-qt5integration' 'dtkwm' 'syntax-highlighting' 'kcodecs' 'polkit-qt5')
makedepends=('cmake' 'qt5-tools')
groups=('deepin-extra')
source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-editor/archive/$pkgver.tar.gz")
sha512sums=('4943ec7b356facd406548fe96aaf030c4be61717604be42ccb3c2d3737480dd79cd83233b85ac60a72fd4fbab80fec048bb46e6323d3fe211f2f0f325cc466af')

build(){
  cd deepin-editor-$pkgver
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
  make
}

package() {
  cd deepin-editor-$pkgver
  make DESTDIR="$pkgdir" install
}
