aports/testing/cgiirc/APKBUILD

42 lines
1.4 KiB
Text

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cgiirc
pkgver=0.5.12
pkgrel=1
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"