summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ba4072eed981bed5373639e166f203e3b57842a (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
# Maintainer: CobbCoding 
pkgname=cano-git
_pkgname=cano
pkgver=r311.af4a963
pkgrel=1
pkgdesc="Terminal-based modal text editor"
arch=('x86_64')
url="https://github.com/CobbCoding1/cano"
license=('APACHE')
conflicts=('cano')
depends=('ncurses' 'glibc')
makedepends=('git' 'make' 'gcc')
source=("$_pkgname::git+https://github.com/CobbCoding1/$_pkgname.git")
md5sums=('SKIP')

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

build() {
    cd "$_pkgname" 
	make -B
}

package() {
    cd "$_pkgname"
    make install
    install -Dm755 ./README.md "$pkgdir/usr/share/doc/$_pkgname"
}