blob: 7904078d476a994c010b9d4538a12e2653831db7 (
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
|
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=cgiirc
pkgver=0.5.12
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/
}
sha512sums="ba156bbf036846e2bdd1d5f219d837bcfc23c690593740bccad375af95f3d4c56c3624621d03b47145b5dbb73e2fed5a16b6917f81ac784de04e0e9d6afdd2eb cgiirc-0.5.12.tar.gz
9c2cb5f71290cf15cd39f316b8e62b00fa50a8357233497b82f2aabc6f73ba23bc4712cda73b198eb59ecddde00020d50e2e812531eb446af18038170f8dc12d cgiirc.config"
|