aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cgiirc/APKBUILD
blob: cc3d701c77e21000bfaf22d348b359175040366c (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
41
42
43
44
45
46
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=cgiirc
pkgver=0.5.10
pkgrel=0
pkgdesc="A perl/CGI program to use IRC from a web browser"
url="http://cgiirc.org/"
arch="all"
license="GPL"
depends="perl"
depends_dev=""
makedepends="$depends_dev"
install="$pkgname.post-install"
subpackages=""
source="http://cgiirc.org/releases/$pkgname-$pkgver.tar.gz
	cgiirc.config"
_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	cc -O2 -o client.cgi client.c 
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir"/usr/share/webapps/$pkgname
	mkdir -p "$pkgdir"/etc/cgiirc/formats
	cp cgiirc.config.full "$pkgdir"/etc/cgiirc
	cp "$srcdir"/cgiirc.config "$pkgdir"/etc/cgiirc/cgiirc.config
	cp ipaccess.example "$pkgdir"/etc/cgiirc
	cp formats/* "$pkgdir"/etc/cgiirc/formats
	for i in *.cgi; do
		cp $i "$pkgdir"/usr/share/webapps/$pkgname/$i 
		chmod 755 "$pkgdir"/usr/share/webapps/$pkgname/$i
	done
	cp -r modules "$pkgdir"/usr/share/webapps/$pkgname/ 
	cp -r images "$pkgdir"/usr/share/webapps/$pkgname/ 
	cp -r interfaces "$pkgdir"/usr/share/webapps/$pkgname/ 

}

md5sums="bfc7b7fb9f53748600f39aae310a0265  cgiirc-0.5.10.tar.gz
c4030bb3ee8182e4fa6b7ce4a413fe3b  cgiirc.config"
sha256sums="654409c768026e9565e54a39e27064a4f86fc778042e1d46959f30d24fbfbce0  cgiirc-0.5.10.tar.gz
02e23fb37746182f140b4a93c9d08ae7b0693e411a23b52d7c1c776c028276fe  cgiirc.config"
sha512sums="57001051a31f8a1494e8b31b256b5f244ed7e1d23f38f27184374f1becf91e6ea3bd61621679e046ae0a11a2eb3e5909d9d284df2a896bf5aac38f5314c7ae55  cgiirc-0.5.10.tar.gz
9c2cb5f71290cf15cd39f316b8e62b00fa50a8357233497b82f2aabc6f73ba23bc4712cda73b198eb59ecddde00020d50e2e812531eb446af18038170f8dc12d  cgiirc.config"