# $Id: PKGBUILD 142237 2015-09-30 03:31:25Z fyan $
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=deepin-social-sharing
pkgver=1.1
pkgrel=1
pkgdesc="Deepin social sharing service"
arch=('any')
url="https://gitcafe.com/Deepin/deepin-social-sharing"
license=('GPL3')
depends=('deepin-qml-widgets' 'python2-pyqt5' 'python2-requests-oauthlib')
makedepends=('deepin-gettext-tools' 'git')
groups=('deepin')
source=("git+https://github.com/linuxdeepin/deepin-social-sharing.git#tag=$pkgver")
sha256sums=('SKIP')

prepare() {
  cd deepin-social-sharing

  # fix python version
  find src -type f | xargs sed -i 's=\(^#! */usr/bin.*\)python *$=\1python2='
}

build() {
  cd deepin-social-sharing

  make
}

package() {
  cd deepin-social-sharing
  make DESTDIR="${pkgdir}" install
}

 # Local Variables:
 # sh-basic-offset: 2
 # End:
