summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 849b61467fcbb01e4c20789118f31bdb2d08b9d2 (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
31
32
33
# Maintainer: Noah Jelen <noahtjelen@gmail.com>

pkgname=cesium-editor
pkgver=0.2.1
pkgrel=1
pkgdesc="A bare bones text editor"
arch=('i686' 'x86_64')
url="https://gitlab.com/NoahJelen/cesium"
license=('GPL')
depends=('ncurses' 'gcc-libs' 'glibc')
makedepends=('cargo' 'gzip')
source=("https://gitlab.com/NoahJelen/cesium/-/archive/0.2.1/cesium-0.2.1.zip")
conflicts=('cesium-editor-git')
md5sums=('SKIP')

build() {
    cd "cesium-0.2.1"
    cargo build --release
}

package() {
    #the package contents
    cd "cesium-0.2.1"
    mkdir -p "$pkgdir/usr/lib/cesium"
    mkdir -p "$pkgdir/usr/share/man/man1/"
    install -Dt "$pkgdir/usr/bin" -m755 target/release/cesium
    install -Dt "$pkgdir/usr/share/applications/" cesium.desktop
    install -Dt "$pkgdir/usr/lib/cesium/" icon.png

    #the documentation
    install -Dt "$pkgdir/usr/share/man/man1" man/cesium.1
    gzip "$pkgdir/usr/share/man/man1/cesium.1"
}