aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/xchat/APKBUILD20
1 files changed, 15 insertions, 5 deletions
diff --git a/main/xchat/APKBUILD b/main/xchat/APKBUILD
index 7f215037a0..96486e27cb 100644
--- a/main/xchat/APKBUILD
+++ b/main/xchat/APKBUILD
@@ -1,20 +1,26 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xchat
pkgver=2.8.6
-pkgrel=0
+pkgrel=1
pkgdesc="A GTK+ based IRC client"
url="http://www.xchat.org/"
license="GPL"
-makedepends="pkgconfig gtk+-dev openssl-dev dbus-glib-dev xextproto perl-dev"
+makedepends="pkgconfig gtk+-dev openssl-dev dbus-glib-dev perl-dev
+ libxext-dev"
source="http://www.$pkgname.org/files/source/2.8/$pkgname-$pkgver.tar.bz2
http://www.$pkgname.org/files/source/2.8/patches/xc286-smallfixes.diff
$pkgname-gtk2.patch"
-build ()
-{
- cd "$srcdir"/$pkgname-$pkgver
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
patch -p1 < ../xc286-smallfixes.diff || return 1
patch -p1 < ../xchat-gtk2.patch || return 1
+}
+
+
+build() {
+ cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-openssl \
@@ -27,6 +33,10 @@ build ()
--enable-shm \
--enable-spell=static || return 1
make || return 1
+}
+
+package() {
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}