Date: Monday, April 26, 2021 @ 23:36:51 Author: felixonmars Revision: 924656
addpkg: deepin-pw-check 5.0.11-1 Added: deepin-pw-check/ deepin-pw-check/repos/ deepin-pw-check/trunk/ deepin-pw-check/trunk/PKGBUILD ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Added: deepin-pw-check/trunk/PKGBUILD =================================================================== --- deepin-pw-check/trunk/PKGBUILD (rev 0) +++ deepin-pw-check/trunk/PKGBUILD 2021-04-26 23:36:51 UTC (rev 924656) @@ -0,0 +1,42 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=deepin-pw-check +pkgver=5.0.11 +pkgrel=1 +pkgdesc='Tool to verify the validity of the password' +arch=('x86_64') +url="https://github.com/linuxdeepin/deepin-pw-check" +license=('GPL3') +depends=('cracklib' 'gtk3' 'iniparser') +makedepends=('deepin-gettext-tools' 'git' 'go' 'golang-deepin-lib' 'golang-github-linuxdeepin-go-dbus-factory') +groups=('deepin') +source=("https://github.com/linuxdeepin/deepin-pw-check/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('725e5b24af0a0b50b7ff786777764315afff9c7c7b5d083f8191829d50cf887cf04ab6c0a08ad0fcac97cc1a0f62cd49727c641ab4d213f5b1d39bfba608e2ba') + +export GO111MODULE=off + +prepare() { + export GOPATH="$srcdir/build:/usr/share/gocode" + go get github.com/godbus/dbus github.com/fsnotify/fsnotify + + cd deepin-pw-check-$pkgver + sed -i 's|iniparser/||' */*.c + sed -i 's|gcc |gcc ${CFLAGS} ${LDFLAGS} |' Makefile +} + +build() { + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + + cd deepin-pw-check-$pkgver + # broken Makefile + make -j1 +} + +package() { + cd deepin-pw-check-$pkgver + make DESTDIR="$pkgdir" PKG_FILE_DIR=/usr/lib/pkgconfig PAM_MODULE_DIR=/usr/lib/security install +}