[arch-commits] Commit in deepin-pw-check/repos/community-x86_64 (PKGBUILD PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Fri Sep 2 07:31:35 UTC 2022


    Date: Friday, September 2, 2022 @ 07:31:35
  Author: felixonmars
Revision: 1290595

archrelease: copy trunk to community-x86_64

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-02 07:31:19 UTC (rev 1290594)
+++ PKGBUILD	2022-09-02 07:31:35 UTC (rev 1290595)
@@ -1,42 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=deepin-pw-check
-pkgver=5.1.8
-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=('619a4b6397f8a422b8bee734e0c4d4113f289e4cb1988756f9009bd253810f293cb2e4f6bdc75c7607a1243217900629b35e343e70d817674a38707e27059659')
-
-export GO111MODULE=off
-
-prepare() {
-  export GOPATH="$srcdir/build:/usr/share/gocode"
-  go get github.com/godbus/dbus github.com/fsnotify/fsnotify gopkg.in/yaml.v3
-
-  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
-}

Copied: deepin-pw-check/repos/community-x86_64/PKGBUILD (from rev 1290594, deepin-pw-check/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-09-02 07:31:35 UTC (rev 1290595)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=deepin-pw-check
+pkgver=5.1.16
+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-fsnotify-fsnotify'
+             'golang-github-linuxdeepin-go-dbus-factory' 'golang-github-stretchr-testify'
+             'golang-gopkg-yaml.v3')
+groups=('deepin')
+source=("https://github.com/linuxdeepin/deepin-pw-check/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('db59b3ab8d6f8971342bd906a6f67f421db5dc2c5846b314698012831e22daaecfbb0fe595b47fd856bd523375d93a2001dcaa096d518e65c55fdcb982f960a7')
+
+export GO111MODULE=off
+
+prepare() {
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  go get github.com/godbus/dbus
+
+  cd deepin-pw-check-$pkgver
+  sed -i 's|iniparser/||' */*.c
+  sed -i 's|gcc |gcc ${CFLAGS} ${LDFLAGS} |' Makefile
+  sed -i 's|sprintf(outbuf, err_to_string|sprintf(outbuf, "%s", err_to_string|' pam/pam.c
+}
+
+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