upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / silicon / repos / community-x86_64 / PKGBUILD
blob5a3d551a00f57bb26ac0621fb1f52a261a05d1ad
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Radoslaw Mejer <radmen@radmen.info>
3 pkgname=silicon
4 pkgver=0.5.1
5 pkgrel=1
6 pkgdesc="Create beautiful images of your code"
7 depends=('fontconfig' 'freetype2' 'xclip')
8 makedepends=('rust' 'cargo' 'glibc' 'llvm-libs' 'gcc-libs' 'clang' 'python')
9 arch=('x86_64')
10 license=('MIT')
11 url="https://github.com/Aloxaf/silicon"
12 source=("$pkgname-$pkgver.tar.gz::https://github.com/Aloxaf/silicon/archive/v$pkgver.tar.gz")
13 options=('!lto')
14 sha256sums=('784a6f99001f2000422b676e637fe83a5dc27f5fc55ad33e227c882ce20e6439')
16 build() {
17     cd "$srcdir/silicon-$pkgver"
18     cargo build --release --locked
21 check() {
22     cd "$srcdir/silicon-$pkgver"
23     cargo check --locked
26 package() {
27     cd "$srcdir/silicon-$pkgver"
28     install -Dm755 "target/release/silicon" "$pkgdir/usr/bin/$pkgname"
29     install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"