* add corrosion

This commit is contained in:
Alexander Baldeck 2023-10-17 08:00:00 +02:00
parent ab5f0a6de7
commit 2d55836938
2 changed files with 40 additions and 0 deletions

13
corrosion/.SRCINFO Normal file
View 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
View 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
}