blob: 78a8f5f43eddb316c5e6d7138375ebe82dd02b2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: 0xGingi <0xgingi@0xgingi.com>
pkgname=phantom-editor-git
pkgver=0.7.9.r0.gb1ade08
pkgrel=1
pkgdesc="Phantom is a lightweight terminal-based text editor written in Rust"
arch=('x86_64')
url="https://github.com/0xGingi/phantom"
license=('MIT')
depends=('gcc-libs')
makedepends=('git' 'rust' 'cargo')
provides=('phantom-editor')
conflicts=('phantom-editor' 'phantom-editor-bin')
source=("git+https://github.com/0xGingi/phantom.git")
md5sums=('SKIP')
options=(!lto)
pkgver() {
cd "$srcdir/phantom"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/phantom"
cargo build --release
}
package() {
cd "$srcdir/phantom"
install -Dm755 target/release/phantom "$pkgdir/usr/bin/phantom"
}
|