Date: Thursday, May 18, 2023 @ 01:36:29 Author: grawlinson Revision: 1463019
archrelease: copy trunk to community-x86_64 Added: dbmate/repos/community-x86_64/PKGBUILD (from rev 1463018, dbmate/trunk/PKGBUILD) Deleted: dbmate/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 140 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 70 insertions(+), 70 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2023-05-18 01:34:45 UTC (rev 1463018) +++ PKGBUILD 2023-05-18 01:36:29 UTC (rev 1463019) @@ -1,70 +0,0 @@ -# Maintainer: George Rawlinson <grawlin...@archlinux.org> -# Contributor: Marco A Rojas <marco.ro...@zentek.com.mx> - -pkgname=dbmate -pkgver=2.2.0 -pkgrel=1 -pkgdesc='A lightweight, framework-agnostic database migration tool' -arch=('x86_64') -url='https://github.com/amacneil/dbmate' -license=('MIT') -depends=('glibc') -makedepends=('git' 'go') -optdepends=( - 'mariadb: for local MariaDB instance' - 'postgresql: for local PostgreSQL instance' - 'sqlite: for local SQLite instance' -) -options=('!lto') -_commit='02a179075e18a8f769a4e1efd58302ab5724393c' -source=("$pkgname::git+$url.git#commit=$_commit") -b2sums=('SKIP') - -pkgver() { - cd "$pkgname" - git describe --tags | sed 's/^v//' -} - -prepare() { - cd "$pkgname" - - # create directory for build output - mkdir build - - # download dependencies - export GOPATH="${srcdir}" - go mod download -} - -build() { - cd "$pkgname" - - # set Go flags - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export GOPATH="${srcdir}" - - go build -v \ - -buildmode=pie \ - -mod=readonly \ - -modcacherw \ - -ldflags "-compressdwarf=false \ - -linkmode external \ - -extldflags ${LDFLAGS}" \ - -o build \ - . -} - -package() { - cd "$pkgname" - - # binary - install -vDm755 -t "$pkgdir/usr/bin" "build/$pkgname" - - # documentation - install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md - - # license - install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE -} Copied: dbmate/repos/community-x86_64/PKGBUILD (from rev 1463018, dbmate/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2023-05-18 01:36:29 UTC (rev 1463019) @@ -0,0 +1,70 @@ +# Maintainer: George Rawlinson <grawlin...@archlinux.org> +# Contributor: Marco A Rojas <marco.ro...@zentek.com.mx> + +pkgname=dbmate +pkgver=2.3.0 +pkgrel=1 +pkgdesc='A lightweight, framework-agnostic database migration tool' +arch=('x86_64') +url='https://github.com/amacneil/dbmate' +license=('MIT') +depends=('glibc') +makedepends=('git' 'go') +optdepends=( + 'mariadb: for local MariaDB instance' + 'postgresql: for local PostgreSQL instance' + 'sqlite: for local SQLite instance' +) +options=('!lto') +_commit='f4610da0b9bc55d0298ac3be0bbc41a4f988d4c8' +source=("$pkgname::git+$url.git#commit=$_commit") +b2sums=('SKIP') + +pkgver() { + cd "$pkgname" + git describe --tags | sed 's/^v//' +} + +prepare() { + cd "$pkgname" + + # create directory for build output + mkdir build + + # download dependencies + export GOPATH="${srcdir}" + go mod download +} + +build() { + cd "$pkgname" + + # set Go flags + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export GOPATH="${srcdir}" + + go build -v \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags "-compressdwarf=false \ + -linkmode external \ + -extldflags ${LDFLAGS}" \ + -o build \ + . +} + +package() { + cd "$pkgname" + + # binary + install -vDm755 -t "$pkgdir/usr/bin" "build/$pkgname" + + # documentation + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md + + # license + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +}