# Maintainer: justforlxz pkgname=deepin-pw-check-git pkgver=5.1.2.r5.gef201e1 pkgrel=6 pkgdesc='deepin-pw-check is a tool to verify the validity of the password' arch=('x86_64') url="https://github.com/linuxdeepin/deepin-pw-check" license=('GPL3') depends=('cracklib' 'iniparser' 'pam') makedepends=('git' 'go' 'golang-github-linuxdeepin-go-dbus-factory-git' 'deepin-gettext-tools') groups=('deepin-git') provides=('deepin-pw-check') conflicts=('deepin-pw-check') source=("$pkgname::git://github.com/linuxdeepin/deepin-pw-check") sha512sums=('SKIP') pkgver() { cd $pkgname git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd $pkgname export GOPATH="$srcdir/build:/usr/share/gocode" export GO111MODULE=off go get -v github.com/godbus/dbus go get -v github.com/fsnotify/fsnotify go get -v gopkg.in/yaml.v3 sed -i 's/