summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa13cd94d8d25013e26fb4f048162e32d60b4008 (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
39
40
# Maintainer: Wyatt J. Brown <sushidudeteam@gmail.com>
pkgname=rice
pkgver=r20.3c2efcd
pkgrel=5
pkgdesc='A dump of scripts that are used for fun/rice, as seen on TV^H^H the internet.'
arch=('aarch64' 'arm' 'armv6h' 'armv7h' 'i686' 'x86_64')
url='https://github.com/janbrennen/rice'
license=('custom:Public Domain')
depends=('lua')
source=('https://github.com/janbrennen/rice/archive/3c2efcd9cc6fb7fcb398f4220d53080b95fb28e2.zip')
sha512sums=('96a8fc9c5ed476db3917bcc1533e456a4afa27185d112f713dfbe2a2cf1a19adc9f13b49f98e31573bc0e906751f35794c7b4095b5ff78e2ddba36bf08bfb345')

build()
{
	cd "$srcdir"/rice-*

	if [ -z "$CC" ]; then
		CC=gcc
	fi
	$CC $CFLAGS $CPPFLAGS -lpthread hack.exe.c -o hack.exe.out
}

package()
{
	cd "$srcdir"/rice-*

	install -Dm755 256color.pl "$pkgdir/usr/bin/256color"

	sed -i '1i#!/usr/bin/lua' 3spooky.lua
	install -Dm755 3spooky.lua "$pkgdir/usr/bin/3spooky"

	install -Dm755 hackertyper.sh "$pkgdir/usr/bin/hackertyper"

	install -Dm755 hack.exe.out "$pkgdir/usr/bin/hack.exe"

	install -Dm755 pipes.sh "$pkgdir/usr/bin/pipes"

	mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
	echo 'This script is currently in the Public Domain.' > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}