aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cgiirc/APKBUILD
blob: 78d2ad169825521e87aca8c78592f9fa821b2411 (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.11
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="d1ccb02c54ff5a4e58ac585d1f03ebe9  cgiirc-0.5.11.tar.gz
c4030bb3ee8182e4fa6b7ce4a413fe3b  cgiirc.config"
sha256sums="d774a2a5922fe44a043c0af29f55dc526a7498bb729f1193c5e9b9f10089680c  cgiirc-0.5.11.tar.gz
02e23fb37746182f140b4a93c9d08ae7b0693e411a23b52d7c1c776c028276fe  cgiirc.config"
sha512sums="485781d454b006c8bdda0667104fc13977f0e0d340a79c9446088e308a74f604f41e7c5c34d581c271d59adbcec46d40d8ef1cb6d580e238d22ed9f0ca109519  cgiirc-0.5.11.tar.gz
9c2cb5f71290cf15cd39f316b8e62b00fa50a8357233497b82f2aabc6f73ba23bc4712cda73b198eb59ecddde00020d50e2e812531eb446af18038170f8dc12d  cgiirc.config"