diff options
author | Victor Häggqvist | 2018-06-24 21:24:17 +0200 |
---|---|---|
committer | Victor Häggqvist | 2018-06-24 21:24:17 +0200 |
commit | 07b45676763b53fd1b7244e33dbf70a09d4061d8 (patch) | |
tree | 82d209cd78f211a466759fc06f976fedc84c3720 | |
parent | a11c06478057483434ac453d02ee6e50eebebc2e (diff) | |
download | aur-07b45676763b53fd1b7244e33dbf70a09d4061d8.tar.gz |
update upstream
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 18 insertions, 16 deletions
@@ -1,16 +1,16 @@ # Generated by mksrcinfo v8 -# Sat Dec 9 13:07:48 UTC 2017 +# Sun Jun 24 19:23:47 UTC 2018 pkgbase = migrate pkgdesc = Database migration handling in Golang - pkgver = v3.0.1.r89.gd23f71b + pkgver = v3.3.0.r3.g6070aa8 pkgrel = 1 - url = https://github.com/mattes/migrate + url = https://github.com/golang-migrate/migrate arch = x86_64 arch = i686 license = MIT options = !strip options = !emptydirs - source = git://github.com/mattes/migrate.git + source = git://github.com/golang-migrate/migrate.git sha512sums = SKIP pkgname = migrate @@ -3,18 +3,18 @@ pkgname=migrate -pkgver=v3.0.1.r89.gd23f71b +pkgver=v3.3.0.r3.g6070aa8 pkgrel=1 pkgdesc="Database migration handling in Golang" -url="https://github.com/mattes/migrate" +url="https://github.com/golang-migrate/migrate" license=('MIT') arch=('x86_64' 'i686') -makedepends=('go') +makedepends=('go', 'dep') options=('!strip' '!emptydirs') depends=() makedepends=() -source=(git://github.com/mattes/migrate.git) +source=(git://github.com/golang-migrate/migrate.git) sha512sums=('SKIP') pkgver() { @@ -23,15 +23,17 @@ pkgver() { } build() { - GOPATH="$srcdir" - rm -rf "$srcdir/src/github.com/mattes" - mkdir -p "$srcdir/src/github.com/mattes" - mv "$srcdir/migrate" "$srcdir/src/github.com/mattes" - - go build -v -o migrate-bin github.com/mattes/migrate + GOPATH="$srcdir/gopath" + mkdir -p "$GOPATH/src/github.com/golang-migrate" + mv "$srcdir/migrate" "$GOPATH/src/github.com/golang-migrate" + cd "$GOPATH/src/github.com/golang-migrate/migrate" + dep ensure -v + cd $srcdir + go install -v github.com/golang-migrate/migrate/cli } package() { - install -Dm755 "migrate-bin" "$pkgdir/usr/bin/$pkgname" - install -Dm644 "$srcdir/src/github.com/mattes/migrate/LICENSE" "$pkgdir/usr/share/licenses/migrate/LICENSE" + GOPATH="$srcdir/gopath" + install -Dm755 "$GOPATH/bin/cli" "$pkgdir/usr/bin/$pkgname" + install -Dm644 "$GOPATH/src/github.com/golang-migrate/migrate/LICENSE" "$pkgdir/usr/share/licenses/migrate/LICENSE" } |