[arch-commits] Commit in deepin-pw-check/repos (2 files)

Felix Yan felixonmars at archlinux.org
Wed Jun 30 02:05:37 UTC 2021


    Date: Wednesday, June 30, 2021 @ 02:05:37
  Author: felixonmars
Revision: 967898

archrelease: copy trunk to community-testing-x86_64

Added:
  deepin-pw-check/repos/community-testing-x86_64/
  deepin-pw-check/repos/community-testing-x86_64/PKGBUILD
    (from rev 967897, deepin-pw-check/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: deepin-pw-check/repos/community-testing-x86_64/PKGBUILD (from rev 967897, deepin-pw-check/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-06-30 02:05:37 UTC (rev 967898)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=deepin-pw-check
+pkgver=5.0.17
+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=('f81ef88ceab5d5f666458d6e64cad655e3698a007295d8c8e847b8a1936544df4a848f84edcdb1db7395dfcb5ffdc7b633e9e3b341979c91f1c6b10051998aab')
+
+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
+}




More information about the arch-commits mailing list