summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed15cad309694a38dbe9af1dfbe51e3b8e8b9dad (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: Martin Sandsmark <martin.sandsmark@kde.org>

pkgname=asciiquarium-git
pkgver=r12.8bdb7d4
pkgrel=1
pkgdesc="An aquarium/sea animation in ASCII art"
arch=("any")
url="https://github.com/cmatsuoka/asciiquarium"
license=("GPL")
depends=("perl-term-animation")
makedepends=("git")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/cmatsuoka/asciiquarium.git")
md5sums=('SKIP')

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

package() {
	cd "$srcdir/${pkgname%-git}"
    install -Dm644 "gpl.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    install -Dm755 "asciiquarium" "${pkgdir}/usr/bin/asciiquarium"
}