summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7247575efc1bc6ba766a12367a53511b993c83a2 (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>
# Generated by cargo on August 22, 2024 at 14:32:49
pkgname=the-rock
pkgver=0.9.1
pkgrel=1
pkgdesc="A command line King James bible viewer"
arch=('i686' 'x86_64')
url="https://gitlab.com/NoahJelen/the-rock"
license=('GPL-3')
depends=('gcc-libs' 'glibc')
makedepends=('cargo')
source=("https://gitlab.com/NoahJelen/the-rock/-/archive/$pkgver/the-rock-$pkgver.zip")
md5sums=('SKIP')

build() {
    cd "the-rock-$pkgver"
    cargo build --release
    cd target/release
    ln -sf the_rock bible
}

package() {
    cd "the-rock-$pkgver"
    mkdir -p "$pkgdir/usr/share/the_rock"
    mkdir -p "$pkgdir/usr/share/man/man1/"
    install -Dt "$pkgdir/usr/bin" -m755 target/release/the_rock
    install -Dt "$pkgdir/usr/bin" -m755 target/release/bible
    install -Dt "$pkgdir/usr/share/the_rock/" bible.rawtext
    install -Dt "$pkgdir/usr/share/applications/" the_rock.desktop
    install -Dt "$pkgdir/usr/share/the_rock/" icon.png
    install -Dt "$pkgdir/usr/share/man/man1" man/the_rock.1
    install -Dt "$pkgdir/usr/share/man/man1" man/bible.1
}