[arch-commits] Commit in gocryptfs/repos/community-x86_64 (5 files)

Maxim Baz maximbaz at archlinux.org
Mon Mar 18 19:16:26 UTC 2019


    Date: Monday, March 18, 2019 @ 19:16:26
  Author: maximbaz
Revision: 442494

archrelease: copy trunk to community-x86_64

Added:
  gocryptfs/repos/community-x86_64/PKGBUILD
    (from rev 442493, gocryptfs/trunk/PKGBUILD)
  gocryptfs/repos/community-x86_64/build_flags.patch
    (from rev 442493, gocryptfs/trunk/build_flags.patch)
  gocryptfs/repos/community-x86_64/makefile.patch
    (from rev 442493, gocryptfs/trunk/makefile.patch)
Deleted:
  gocryptfs/repos/community-x86_64/PKGBUILD
  gocryptfs/repos/community-x86_64/build_flags.patch

-------------------+
 PKGBUILD          |   85 +++++++++++++++++++++++++---------------------------
 build_flags.patch |   22 ++++++-------
 makefile.patch    |   22 +++++++++++++
 3 files changed, 75 insertions(+), 54 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-18 19:16:20 UTC (rev 442493)
+++ PKGBUILD	2019-03-18 19:16:26 UTC (rev 442494)
@@ -1,43 +0,0 @@
-# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
-# Contributor: Peter Reschenhofer <peter.reschenhofer at gmail.com>
-
-_pkgauthor=rfjakob
-pkgname=gocryptfs
-pkgver=1.7
-pkgrel=1
-pkgdesc='Encrypted overlay filesystem written in Go.'
-arch=('x86_64')
-url="https://github.com/${_pkgauthor}/${pkgname}"
-license=('MIT')
-depends=('gcc-libs' 'openssl' 'fuse')
-makedepends=('go-pie' 'pandoc' 'man-db')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgauthor}/${pkgname}/releases/download/v${pkgver}/${pkgname}_v${pkgver}_src-deps.tar.gz"
-        "${pkgname}-${pkgver}.tar.gz.asc::https://github.com/${_pkgauthor}/${pkgname}/releases/download/v${pkgver}/${pkgname}_v${pkgver}_src-deps.tar.gz.asc"
-        "build_flags.patch")
-sha256sums=('2d1a2cfd072d554a28ee6e6807474b00ac710fb1aaf7aa81f3d8e94e80f6a703'
-            'SKIP'
-            'f43c3d2cc8c7f0338dbd553d0189eda269d7ceee6a3539dd6096c18e7344e567')
-validpgpkeys=('FFF3E01444FED7C316A3545A895F5BC123A02740')
-
-prepare() {
-    mkdir -p "${srcdir}/gopath/src/github.com/${_pkgauthor}"
-    ln -rTsf "${srcdir}/${pkgname}_v${pkgver}_src-deps" "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}"
-
-    cd "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}"
-    patch -Np1 -i "${srcdir}/build_flags.patch"
-}
-
-build() {
-    export GOPATH="${srcdir}/gopath"
-    cd "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}"
-    ./build.bash
-    ./Documentation/MANPAGE-render.bash >/dev/null
-}
-
-package() {
-    cd "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}"
-    install -Dm755 -t "${pkgdir}/usr/bin/" "${pkgname}"
-    install -Dm755 -t "${pkgdir}/usr/bin/" "${pkgname}-xray/${pkgname}-xray"
-    install -Dm644 -t "${pkgdir}/usr/share/man/man1/" "Documentation/${pkgname}.1"
-    install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
-}

Copied: gocryptfs/repos/community-x86_64/PKGBUILD (from rev 442493, gocryptfs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-03-18 19:16:26 UTC (rev 442494)
@@ -0,0 +1,42 @@
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+# Contributor: Peter Reschenhofer <peter.reschenhofer at gmail.com>
+
+_pkgauthor=rfjakob
+pkgname=gocryptfs
+pkgver=1.7
+pkgrel=2
+pkgdesc='Encrypted overlay filesystem written in Go.'
+arch=('x86_64')
+url="https://github.com/${_pkgauthor}/${pkgname}"
+license=('MIT')
+depends=('gcc-libs' 'openssl' 'fuse')
+makedepends=('go-pie' 'pandoc' 'man-db')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgauthor}/${pkgname}/releases/download/v${pkgver}/${pkgname}_v${pkgver}_src-deps.tar.gz"
+        "${pkgname}-${pkgver}.tar.gz.asc::https://github.com/${_pkgauthor}/${pkgname}/releases/download/v${pkgver}/${pkgname}_v${pkgver}_src-deps.tar.gz.asc"
+        "build_flags.patch"
+        "makefile.patch")
+sha256sums=('2d1a2cfd072d554a28ee6e6807474b00ac710fb1aaf7aa81f3d8e94e80f6a703'
+            'SKIP'
+            'f43c3d2cc8c7f0338dbd553d0189eda269d7ceee6a3539dd6096c18e7344e567'
+            '2821a72db020d4d5b3aeb0ce6584ec1edcda2b0948c155bc95ead634e760d37e')
+validpgpkeys=('FFF3E01444FED7C316A3545A895F5BC123A02740')
+
+prepare() {
+    mkdir -p "${srcdir}/gopath/src/github.com/${_pkgauthor}"
+    ln -rTsf "${srcdir}/${pkgname}_v${pkgver}_src-deps" "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}"
+
+    cd "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}"
+    patch -Np1 -i "${srcdir}/build_flags.patch"
+    patch -Np1 -i "${srcdir}/makefile.patch"
+}
+
+build() {
+    export GOPATH="${srcdir}/gopath"
+    cd "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}"
+    make build
+}
+
+package() {
+    cd "${srcdir}/gopath/src/github.com/${_pkgauthor}/${pkgname}"
+    make DESTDIR="${pkgdir}" install
+}

Deleted: build_flags.patch
===================================================================
--- build_flags.patch	2019-03-18 19:16:20 UTC (rev 442493)
+++ build_flags.patch	2019-03-18 19:16:26 UTC (rev 442494)
@@ -1,11 +0,0 @@
---- a/build.bash
-+++ b/build.bash
-@@ -90,7 +90,7 @@ fi
- # Actual "go build" call
- go build "-ldflags=$GO_LDFLAGS" "-gcflags=$TRIM" "-asmflags=$TRIM" "$@"
-
--(cd gocryptfs-xray; go build "-gcflags=$TRIM" "-asmflags=$TRIM" "$@")
-+(cd gocryptfs-xray; go build "-ldflags=$GO_LDFLAGS" "-gcflags=$TRIM" "-asmflags=$TRIM" "$@")
-
- ./gocryptfs -version
-

Copied: gocryptfs/repos/community-x86_64/build_flags.patch (from rev 442493, gocryptfs/trunk/build_flags.patch)
===================================================================
--- build_flags.patch	                        (rev 0)
+++ build_flags.patch	2019-03-18 19:16:26 UTC (rev 442494)
@@ -0,0 +1,11 @@
+--- a/build.bash
++++ b/build.bash
+@@ -90,7 +90,7 @@ fi
+ # Actual "go build" call
+ go build "-ldflags=$GO_LDFLAGS" "-gcflags=$TRIM" "-asmflags=$TRIM" "$@"
+
+-(cd gocryptfs-xray; go build "-gcflags=$TRIM" "-asmflags=$TRIM" "$@")
++(cd gocryptfs-xray; go build "-ldflags=$GO_LDFLAGS" "-gcflags=$TRIM" "-asmflags=$TRIM" "$@")
+
+ ./gocryptfs -version
+

Copied: gocryptfs/repos/community-x86_64/makefile.patch (from rev 442493, gocryptfs/trunk/makefile.patch)
===================================================================
--- makefile.patch	                        (rev 0)
+++ makefile.patch	2019-03-18 19:16:26 UTC (rev 442494)
@@ -0,0 +1,22 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,7 @@
+ .phony: build
+ build:
+ 	./build.bash
++	./Documentation/MANPAGE-render.bash
+
+ .phony: test
+ test:
+@@ -9,3 +10,11 @@ test:
+ .phony: format
+ format:
+ 	go fmt ./...
++
++.phony: install
++install:
++	install -Dm755 -t "$(DESTDIR)/usr/bin/" gocryptfs
++	install -Dm755 -t "$(DESTDIR)/usr/bin/" gocryptfs-xray/gocryptfs-xray
++	install -Dm644 -t "$(DESTDIR)/usr/share/man/man1/" Documentation/gocryptfs.1
++	install -Dm644 -t "$(DESTDIR)/usr/share/man/man1/" Documentation/gocryptfs-xray.1
++	install -Dm644 -t "$(DESTDIR)/usr/share/licenses/gocryptfs" LICENSE



More information about the arch-commits mailing list