[arch-commits] Commit in meek/repos/community-x86_64 (PKGBUILD PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sat Apr 17 22:09:15 UTC 2021


    Date: Saturday, April 17, 2021 @ 22:09:15
  Author: foxboron
Revision: 919859

archrelease: copy trunk to community-x86_64

Added:
  meek/repos/community-x86_64/PKGBUILD
    (from rev 919858, meek/trunk/PKGBUILD)
Deleted:
  meek/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  115 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 58 insertions(+), 57 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-17 22:09:07 UTC (rev 919858)
+++ PKGBUILD	2021-04-17 22:09:15 UTC (rev 919859)
@@ -1,57 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: shyokou <shyokou at gmail dot com>
-# Contributor: N. Izumi aka izmntuk
-
-pkgname=meek
-pkgver=0.34
-pkgrel=1
-arch=('x86_64')
-pkgdesc='A pluggable transport proxy written in Go'
-optdepends=('tor')
-url='https://trac.torproject.org/projects/tor/wiki/doc/meek'
-license=('custom:CC0')
-depends=('glibc')
-makedepends=('go' 'git')
-source=("git+https://git.torproject.org/pluggable-transports/meek.git#tag=$pkgver")
-sha512sums=('SKIP')
-
-prepare() {
-	cd "$srcdir"/meek
-	sed 's|./meek-client|/usr/bin/meek-client|g;
-	     s|./meek-server|/usr/bin/meek-server|g;
-	     s|\(meek-server\.log\)|/tmp/\1|;
-	     s|\(meek-client\.log\)|/tmp/\1|' -i meek-{server,client}/torrc
-}
-
-build() {
-	export GOPATH="$srcdir"
-	export GOBIN="$PWD"
-	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 "$srcdir"/meek/meek-server
-	go get
-	make all
-
-	cd "$srcdir"/meek/meek-client
-	go get
-	make all
-}
-
-package() {
-	install -d "$pkgdir"/usr/{bin,share/{{doc,licenses}/$pkgname,man/man1}}
-	cd "$srcdir"/meek/meek-server
-	install -m755 meek-server "$pkgdir"/usr/bin
-	install -Dm644 torrc "$pkgdir"/usr/share/doc/$pkgname/torrc.meek-server
-	install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README.meek-server
-
-	cd "$srcdir"/meek/meek-client
-	install -m755 meek-client "$pkgdir"/usr/bin
-	install -Dm644 torrc "$pkgdir"/usr/share/doc/$pkgname/torrc.meek-client
-	install -m644 ../README "$pkgdir"/usr/share/doc/$pkgname
-	install -m644 ../COPYING "$pkgdir"/usr/share/licenses/$pkgname
-	install -m644 ../doc/meek-{server,client}.1 "$pkgdir"/usr/share/man/man1
-}

Copied: meek/repos/community-x86_64/PKGBUILD (from rev 919858, meek/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-04-17 22:09:15 UTC (rev 919859)
@@ -0,0 +1,58 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: shyokou <shyokou at gmail dot com>
+# Contributor: N. Izumi aka izmntuk
+
+pkgname=meek
+pkgver=0.34
+pkgrel=2
+arch=('x86_64')
+pkgdesc='A pluggable transport proxy written in Go'
+optdepends=('tor')
+url='https://trac.torproject.org/projects/tor/wiki/doc/meek'
+license=('custom:CC0')
+depends=('glibc')
+makedepends=('go' 'git')
+source=("git+https://git.torproject.org/pluggable-transports/meek.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+	cd "$srcdir"/meek
+	sed 's|./meek-client|/usr/bin/meek-client|g;
+	     s|./meek-server|/usr/bin/meek-server|g;
+	     s|\(meek-server\.log\)|/tmp/\1|;
+	     s|\(meek-client\.log\)|/tmp/\1|' -i meek-{server,client}/torrc
+}
+
+build() {
+	export GOPATH="$srcdir"
+	export GOBIN="$PWD"
+	export CGO_CPPFLAGS="${CPPFLAGS}"
+	export CGO_CFLAGS="${CFLAGS}"
+	export CGO_CXXFLAGS="${CXXFLAGS}"
+	export CGO_LDFLAGS="${LDFLAGS}"
+	export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+	export GO111MODULE=off
+
+	cd "$srcdir"/meek/meek-server
+	go get
+	make all
+
+	cd "$srcdir"/meek/meek-client
+	go get
+	make all
+}
+
+package() {
+	install -d "$pkgdir"/usr/{bin,share/{{doc,licenses}/$pkgname,man/man1}}
+	cd "$srcdir"/meek/meek-server
+	install -m755 meek-server "$pkgdir"/usr/bin
+	install -Dm644 torrc "$pkgdir"/usr/share/doc/$pkgname/torrc.meek-server
+	install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README.meek-server
+
+	cd "$srcdir"/meek/meek-client
+	install -m755 meek-client "$pkgdir"/usr/bin
+	install -Dm644 torrc "$pkgdir"/usr/share/doc/$pkgname/torrc.meek-client
+	install -m644 ../README "$pkgdir"/usr/share/doc/$pkgname
+	install -m644 ../COPYING "$pkgdir"/usr/share/licenses/$pkgname
+	install -m644 ../doc/meek-{server,client}.1 "$pkgdir"/usr/share/man/man1
+}



More information about the arch-commits mailing list