summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 97a4ef86e6322b9a894d97633896e1d906d85d50 (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-git
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=("git+https://gitlab.com/NoahJelen/cesium")
conflicts=('cesium-editor')
md5sums=('SKIP')

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

package() {
    #the package contents
    cd "cesium"
    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"
}