* add corrosion
This commit is contained in:
parent
ab5f0a6de7
commit
2d55836938
13
corrosion/.SRCINFO
Normal file
13
corrosion/.SRCINFO
Normal file
@ -0,0 +1,13 @@
|
||||
pkgbase = corrosion
|
||||
pkgdesc = Tool for integrating Rust into an existing CMake project
|
||||
pkgver = 0.4.4
|
||||
pkgrel = 1
|
||||
url = https://github.com/corrosion-rs/corrosion
|
||||
arch = x86_64
|
||||
license = MIT
|
||||
depends = rust
|
||||
depends = cmake
|
||||
source = https://github.com/corrosion-rs/corrosion/archive/v0.4.4/corrosion-0.4.4.tar.gz
|
||||
sha256sums = bf3981d0e066f2c877949ec59d9ed6cb193ae4ff615b73f20c64a5de68fc06ab
|
||||
|
||||
pkgname = corrosion
|
27
corrosion/PKGBUILD
Normal file
27
corrosion/PKGBUILD
Normal file
@ -0,0 +1,27 @@
|
||||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
||||
# Contributor: Vaporeon <vaporeon@vaporeon.io>
|
||||
|
||||
pkgname=corrosion
|
||||
pkgver=0.4.4
|
||||
pkgrel=1
|
||||
pkgdesc='Tool for integrating Rust into an existing CMake project'
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
url='https://github.com/corrosion-rs/corrosion'
|
||||
license=(MIT)
|
||||
depends=(rust cmake)
|
||||
source=(https://github.com/corrosion-rs/corrosion/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
|
||||
sha256sums=('bf3981d0e066f2c877949ec59d9ed6cb193ae4ff615b73f20c64a5de68fc06ab')
|
||||
|
||||
build() {
|
||||
cmake -B build -S $pkgname-$pkgver \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBEXECDIR=lib \
|
||||
-DCORROSION_BUILD_TESTS=OFF
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
install -Dm644 $pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user