summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03ab46f6ee201870ec6499b842a9ee6e51be6e8a (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
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: 0xsapphir3 <0xsapphir3@gmail.com>
pkgname=gitcolorscripts
pkgver=r19.5c5e449
pkgrel=1
pkgdesc="Get your GitHub contributions right in your terminal!"
arch=(any)
url="https://github.com/BladeOfLightX/gitcolorscripts"
license=('MIT')
depends=(cargo)
provides=(gitcolorscripts)
source=("git+$url")
md5sums=("SKIP")

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

package() {
    find gitcolorscripts/bin \
        -maxdepth 1 \
        -executable \
        -type f \
        -exec install -Dm0755 -t "$pkgdir/usr/bin/" {} +

	install -D LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"

}