1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
6 pkgdesc='Build PostgreSQL extensions with Rust'
8 url='https://github.com/tcdi/pgrx'
10 depends=('gcc-libs' 'openssl' 'clang' 'llvm' 'bzip2')
11 makedepends=('git' 'rust')
12 optdepends=('postgresql: to compile with system postgresql')
13 replaces=('cargo-pgx')
15 _commit='92750b42529aa5221640823a91e78c34a3821eed'
16 source=("$pkgname::git+$url.git#commit=$_commit")
22 git describe --tags | sed 's/^v//'
28 # download dependencies
29 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
35 cargo build --release --frozen --package "$pkgname"
42 install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
45 install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
48 install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE