1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-25 12:40:30 +01:00

Initial upload: migrant 0.14.0-1

This commit is contained in:
2022-10-08 17:34:00 +02:00
parent 8c0112dd02
commit 5d5bdbcefa
2 changed files with 50 additions and 0 deletions

13
migrant/.SRCINFO Normal file
View File

@@ -0,0 +1,13 @@
pkgbase = migrant
pkgdesc = Basic database migration manager powered by migrant_lib
pkgver = 0.14.0
pkgrel = 1
url = https://github.com/jaemk/migrant
arch = x86_64
license = MIT
makedepends = cargo
makedepends = git
source = git+https://github.com/jaemk/migrant#commit=846bfd7a5e2e52df92ce619246d4a1331ec5d515
md5sums = SKIP
pkgname = migrant

37
migrant/PKGBUILD Normal file
View File

@@ -0,0 +1,37 @@
# Maintainer: Bert Peters <bert@bertptrs.nl>
pkgname=migrant
pkgver=0.14.0
pkgrel=1
pkgdesc="Basic database migration manager powered by migrant_lib"
arch=('x86_64')
url="https://github.com/jaemk/migrant"
license=('MIT')
# Uses native rust implementations of DB APIs
depends=()
makedepends=('cargo' 'git')
source=("git+https://github.com/jaemk/migrant#commit=846bfd7a5e2e52df92ce619246d4a1331ec5d515")
md5sums=('SKIP') # No checksums, git source
prepare() {
cd "$pkgname"
cargo fetch --locked
}
build() {
cd "$pkgname"
cargo build --locked --offline --release --features "postgres sqlite mysql"
}
# No tests included, so no check step
# check() {
# cd "$pkgname"
# cargo test
# }
package() {
cd "$pkgname"
install -Dm755 -t "$pkgdir/usr/bin" target/release/migrant
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/LICENSE" LICENSE
}