Date: Friday, August 27, 2021 @ 22:06:38 Author: grawlinson Revision: 1007500
archrelease: copy trunk to community-x86_64 Added: elvish/repos/community-x86_64/PKGBUILD (from rev 1007499, elvish/trunk/PKGBUILD) elvish/repos/community-x86_64/elvish.install (from rev 1007499, elvish/trunk/elvish.install) Deleted: elvish/repos/community-x86_64/PKGBUILD elvish/repos/community-x86_64/elvish.install ----------------+ PKGBUILD | 120 ++++++++++++++++++++++++++++--------------------------- elvish.install | 28 ++++++------ 2 files changed, 77 insertions(+), 71 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-08-27 22:04:34 UTC (rev 1007499) +++ PKGBUILD 2021-08-27 22:06:38 UTC (rev 1007500) @@ -1,57 +0,0 @@ -# Maintainer: George Rawlinson <grawlin...@archlinux.org> -# Contributor: Haochen Tong <i at hexchain dot org> -# Contributor: Qi Xiao <xiaqqaix at gmail dot com> - -pkgname=elvish -pkgver=0.16.1 -pkgrel=1 -pkgdesc="A friendly and expressive Unix shell" -arch=('x86_64') -url="https://github.com/elves/elvish" -license=('BSD') -makedepends=('git' 'go') -install="$pkgname.install" -source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") -b2sums=('da57d44706f26cdf17f5ee880bba884b88a0bf46abd75b4a8f50a45e0ea168dceff483c93f0aba5264eb47e0d900174191730214dbdfed141251dbe3a3ba4c0f') - -prepare() { - cd "$pkgname-$pkgver" - mkdir build - go mod vendor -} - -build() { - cd "$pkgname-$pkgver" - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - - go build -v \ - -trimpath \ - -buildmode=pie \ - -mod=vendor \ - -modcacherw \ - -ldflags "-linkmode external -extldflags ${LDFLAGS} \ - -X github.com/elves/elvish/pkg/buildinfo.Reproducible=true \ - -X github.com/elves/elvish/pkg/buildinfo.Version=$pkgver" \ - -o build \ - ./cmd/... -} - -check() { - cd "$pkgname-$pkgver" - go test -v -race ./... -} - -package() { - cd "$pkgname-$pkgver" - - # binary - install -vDm755 -t "$pkgdir/usr/bin" build/elvish - - # documentation - install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" *.md - - # license - install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE -} Copied: elvish/repos/community-x86_64/PKGBUILD (from rev 1007499, elvish/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-08-27 22:06:38 UTC (rev 1007500) @@ -0,0 +1,63 @@ +# Maintainer: George Rawlinson <grawlin...@archlinux.org> +# Contributor: Haochen Tong <i at hexchain dot org> +# Contributor: Qi Xiao <xiaqqaix at gmail dot com> + +pkgname=elvish +pkgver=0.16.2 +pkgrel=1 +pkgdesc="A friendly and expressive Unix shell" +arch=('x86_64') +url="https://elv.sh" +license=('BSD') +makedepends=('git' 'go') +install="$pkgname.install" +source=("$pkgname-$pkgver.tar.gz::https://github.com/elves/elvish/archive/v$pkgver.tar.gz") +b2sums=('d76942353dc46c8ee8a04c585c745b2c4ba39857bfca8738d24e186ae88e83a57633190d55d138cca2459e265e2125ba588496908da9e2fcd20b0ff9069d194f') + +prepare() { + cd "$pkgname-$pkgver" + + # create directory for build output + mkdir build + + # download dependencies + go mod vendor +} + +build() { + cd "$pkgname-$pkgver" + + # set Go flags + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + + go build -v \ + -trimpath \ + -buildmode=pie \ + -mod=vendor \ + -modcacherw \ + -ldflags "-linkmode external -extldflags ${LDFLAGS} \ + -X github.com/elves/elvish/pkg/buildinfo.Reproducible=true \ + -X github.com/elves/elvish/pkg/buildinfo.Version=$pkgver" \ + -o build \ + ./cmd/... +} + +check() { + cd "$pkgname-$pkgver" + go test -v -race ./... +} + +package() { + cd "$pkgname-$pkgver" + + # binary + install -vDm755 -t "$pkgdir/usr/bin" build/elvish + + # documentation + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" ./*.md + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +} Deleted: elvish.install =================================================================== --- elvish.install 2021-08-27 22:04:34 UTC (rev 1007499) +++ elvish.install 2021-08-27 22:06:38 UTC (rev 1007500) @@ -1,14 +0,0 @@ -post_install() { - grep -qe '^/bin/elvish$' etc/shells || echo '/bin/elvish' >> etc/shells - grep -qe '^/usr/bin/elvish$' etc/shells || echo '/usr/bin/elvish' >> etc/shells -} - -post_upgrade() { - post_install -} - -pre_remove() { - sed -i -r '/^(\/usr)?\/bin\/elvish$/d' etc/shells -} - -# vim:set ts=2 sw=2 et: Copied: elvish/repos/community-x86_64/elvish.install (from rev 1007499, elvish/trunk/elvish.install) =================================================================== --- elvish.install (rev 0) +++ elvish.install 2021-08-27 22:06:38 UTC (rev 1007500) @@ -0,0 +1,14 @@ +post_install() { + grep -Fqx /bin/elvish /etc/shells || echo /bin/elvish >> /etc/shells + grep -Fqx /usr/bin/elvish /etc/shells || echo /usr/bin/elvish >> /etc/shells +} + +post_upgrade() { + post_install +} + +pre_remove() { + sed -i -r '/^(\/usr)?\/bin\/elvish$/d' etc/shells +} + +# vim:set ts=2 sw=2 et: