Fixed up PKGBUILD
parent
6488cce299
commit
e6599fdf7b
@ -1,24 +1,36 @@
|
|||||||
# Maintainer: Matt C <mdc028[at]bucknell[dot]edu>
|
# Maintainer: Matt C <matt[at]tar[dot]black>
|
||||||
|
# Maintainer: Michal S <michal[at]tar[dot]black>
|
||||||
|
# Developer: Michal S <michal[at]tar[dot]black>
|
||||||
|
|
||||||
pkgname=malachite
|
pkgname=malachite
|
||||||
pkgver=2.0.0
|
pkgver=2.0.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Tool for packaging and maintaining pacman repositories"
|
pkgdesc="Tool for packaging and maintaining pacman repositories"
|
||||||
license=('GPL3')
|
arch=('x86_64')
|
||||||
arch=('any')
|
|
||||||
url="https://github.com/crystal-linux/malachite"
|
url="https://github.com/crystal-linux/malachite"
|
||||||
|
license=('GPL3')
|
||||||
source=("git+$url")
|
source=("git+$url")
|
||||||
sha256sums=('SKIP')
|
sha256sums=('SKIP')
|
||||||
depends=('git' 'pacman-contrib' 'gnupg')
|
depends=('git' 'pacman-contrib' 'gnupg')
|
||||||
makedepends=('cargo')
|
makedepends=('cargo')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$srcdir/$pkgname"
|
||||||
|
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${srcdir}/malachite
|
cd "$srcdir/$pkgname"
|
||||||
cargo build --release
|
export RUSTUP_TOOLCHAIN=stable
|
||||||
|
export CARGO_TARGET_DIR=target
|
||||||
|
cargo build --frozen --release --all-features
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
mkdir -p $pkgdir/usr/bin
|
cd "$srcdir/$pkgname"
|
||||||
chmod +x ${srcdir}/malachite/target/release/mlc
|
find target/release \
|
||||||
cp ${srcdir}/malachite/target/release/mlc $pkgdir/usr/bin/.
|
-maxdepth 1 \
|
||||||
}
|
-executable \
|
||||||
|
-type f \
|
||||||
|
-exec install -Dm0755 -t "${pkgdir}/usr/bin" {} +
|
||||||
|
}
|
Loading…
Reference in New Issue