summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38cc6e891b1c7c006c3df13435e9347ef8cc0c07 (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

# Maintainer: Pixel Light <evan@tatarka.me>
pkgname=ponysay-rust-git
_pkgname=ponysay
pkgver=0.2.r0.gcacf653
pkgrel=1
pkgdesc="Bare-bones implementation of ponysay in rust"
arch=("any")
url="https://github.com/evant/ponysay-rust"
license=("GPL3" "FDL")
depends=()
makedepends=('rust' 'git')
provides=('ponysay')
conflicts=('ponysay')
source=("$_pkgname::git+https://github.com/evant/ponysay-rust.git")
sha256sums=('SKIP')

pkgver() {
  	cd "$_pkgname"
  	# cutting off 'v' prefix that presents in the git tag
  	git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$_pkgname"
	make PREFIX="/usr"
}

check() {
	cd "$_pkgname"
	make check
}

package() {
	cd "$_pkgname"
	make install PREFIX="/usr" DESTDIR="$pkgdir"
}