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

pkgname=shadowsocks-deepin
pkgver=1.2.2
pkgrel=1
pkgdesc='Deepin desktop-environment - dock module'
arch=('x86_64')
url="https://github.com/lolimay/shadowsocks-deepin"
license=('GPL3')
depends=('dtkwidget' 'deepin-qt-dbus-factory' 'libqtshadowsocks' 'qrencode' 'zbar')
makedepends=('cmake' 'qt5-tools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/lolimay/shadowsocks-deepin/archive/V$pkgver.tar.gz")
sha512sums=('7d67b4c561f3b1d3c93f85ac33e977e37b0a991b68a7a994ae2d2aa2ea51b9c1600ae8d5a4e7ad58506f630aeca325b28893b588df6870caa1f9a86d4a2d1ad2')

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

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