summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7141dfffe0e42369c77602e22629e5c77e4b38b3 (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
# Maintainer: Sandro-Alessio Gierens <sandro@gierens.de>
pkgname=wikijs-rs
pkgver=0.2.1
pkgrel=1
makedepends=('rust' 'cargo')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
pkgdesc="CLI client for Wiki.js written in Rust."
url="https://github.com/gierens/wikijs-rs"
license=('AGPL-3.0')

build() {
    return 0
}

pkgver() {
    cargo search wikijs | grep "^wikijs " | awk '{print $3}' | tr -d '"'
}

package() {
    cd $srcdir
    cargo install --root="$pkgdir" wikijs --features=cli
    rm -f "$pkgdir"/.crates.toml
    rm -f "$pkgdir"/.crates2.json
    mkdir -p "$pkgdir"/usr
    mv "$pkgdir"/bin "$pkgdir"/usr/
}