summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8a891eb6d72f9fc8c30db75509e29f89f9c0bf4 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: matteac <mateoeestn2@gmail.com>
pkgname=rat
pkgver=0.1.r19.c1f26fd
pkgrel=1
epoch=
pkgdesc="cat written in rust"
arch=(x86_64)
url="https://github.com/matteac/rat"
license=('MIT')
groups=()
depends=()
makedepends=(cargo git)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url")
noextract=()
md5sums=("SKIP")
validpgpkeys=()



pkgver() {
	cd "${_pkgname}"
    printf "0.1.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd rat
    make
}

package() {
    cd rat  
    mkdir -p ${pkgdir}/opt/${pkgname}
    cp -rf * ${pkgdir}/opt/${pkgname}
    make PREFIX=/usr DESTDIR="${pkgdir}" install
    install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}