1 # Maintainer: Caleb Maclennan <caleb@alerque.com>
2 # Contributor: George Rawlinson <grawlinson@archlinux.org>
7 pkgdesc='Lightning-fast and Powerful Code Editor'
10 _url="https://github.com/$pkgname/$pkgname"
23 _archive="$pkgname-$pkgver"
24 source=("$_url/archive/v$pkgver/$_archive.tar.gz")
25 sha256sums=('c4e0668bf98e83a8c451fe69173c51d8345511a1bd580c412750f3b940531c27')
29 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
34 cargo build --frozen --profile release-lto --all-features
39 install -Dm0755 -t "$pkgdir/usr/bin/" "target/release-lto/$pkgname"{,-proxy}
40 local lname=dev.lapce.lapce
41 install -Dm0644 -t "$pkgdir/usr/share/applications/" extra/linux/$lname.desktop
42 install -Dm0644 -t "$pkgdir/usr/share/metainfo/" extra/linux/$lname.metainfo.xml
43 install -Dm0644 extra/images/logo.png "$pkgdir/usr/share/pixmaps/$lname.png"