1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
2 # Contributor: Marco A Rojas <marco.rojas@zentek.com.mx>
7 pkgdesc='A lightweight, framework-agnostic database migration tool'
9 url='https://github.com/amacneil/dbmate'
12 makedepends=('git' 'go')
14 'mariadb: for local MariaDB instance'
15 'postgresql: for local PostgreSQL instance'
16 'sqlite: for local SQLite instance'
19 _commit='f4610da0b9bc55d0298ac3be0bbc41a4f988d4c8'
20 source=("$pkgname::git+$url.git#commit=$_commit")
25 git describe --tags | sed 's/^v//'
31 # create directory for build output
34 # download dependencies
35 export GOPATH="${srcdir}"
43 export CGO_CPPFLAGS="${CPPFLAGS}"
44 export CGO_CFLAGS="${CFLAGS}"
45 export CGO_CXXFLAGS="${CXXFLAGS}"
46 export GOPATH="${srcdir}"
52 -ldflags "-compressdwarf=false \
54 -extldflags ${LDFLAGS}" \
63 install -vDm755 -t "$pkgdir/usr/bin" "build/$pkgname"
66 install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
69 install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE