blob: e6adef0eaff172da3d0af08e2b86f9121dc72974 (
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
|
# Maintainer: a821
# Contributor: CUI Hao <cuihao.leo@gmail.com>
# Contributor: Limao Luo <luolimao+AUR@gmail.com>
pkgname=nyancat-git
pkgver=1.5.2.r5.g5ffb6c5
pkgrel=2
pkgdesc="Nyancat rendered in your terminal"
arch=(i686 x86_64)
url=https://nyancat.dakko.us/
license=('custom:NCSA')
depends=('glibc')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+https://github.com/klange/nyancat.git")
sha512sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
make
head -49 src/nyancat.c | cut -c 4- > LICENSE
}
package() {
cd "$pkgname"
install -Dm755 src/${pkgname%-*} "$pkgdir/usr/bin/${pkgname%-*}"
install -Dm644 ${pkgname%-*}.1 "$pkgdir/usr/share/man/man1/${pkgname%-*}.1"
install -Dm644 systemd/*.{service,socket} -t "$pkgdir/usr/lib/systemd/system/"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
|