summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaroslav Lichtblau2014-11-29 20:49:47 +0100
committerJaroslav Lichtblau2014-11-29 20:49:47 +0100
commit35eaabeeaba90ca4aa464a4a1048d663731c26ad (patch)
tree6bed1dd6e6a7f798a5244a121ca2a379d39b592c
parentbe3a5b00d3c78a5a8a67c16a27ef3d90afa96fe3 (diff)
downloadaur-35eaabeeaba90ca4aa464a4a1048d663731c26ad.tar.gz
valknut-0.4.9-2
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD28
-rw-r--r--valknut.patch12
3 files changed, 37 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d0a75c050b9..7029cf6a65f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,18 @@
pkgbase = valknut
- pkgdesc = A direct connect client for Linux (like dc++), with segmented downloading.
+ pkgdesc = A direct connect client for Linux (like dc++), with segmented downloading
pkgver = 0.4.9
- pkgrel = 1
+ pkgrel = 2
url = http://sourceforge.net/projects/wxdcgui/
arch = i686
arch = x86_64
license = GPL
- depends = qt
+ depends = qt4
depends = dclib>=0.3.23
replaces = dcgui-qt
source = http://downloads.sourceforge.net/sourceforge/wxdcgui/valknut-0.4.9.tar.bz2
+ source = valknut.patch
md5sums = c25d68c447cb9deb4262befdde9fccea
+ md5sums = e700bc3ef6221a9e36421e888c5a2e28
pkgname = valknut
diff --git a/PKGBUILD b/PKGBUILD
index e51c7df8812..0cc5ab2660b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,34 @@
-# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
pkgname=valknut
pkgver=0.4.9
-pkgrel=1
-pkgdesc="A direct connect client for Linux (like dc++), with segmented downloading."
+pkgrel=2
+pkgdesc="A direct connect client for Linux (like dc++), with segmented downloading"
license=('GPL')
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/wxdcgui/"
-depends=('qt' 'dclib>=0.3.23')
+depends=('qt4' 'dclib>=0.3.23')
replaces=('dcgui-qt')
-source=(http://downloads.sourceforge.net/sourceforge/wxdcgui/$pkgname-$pkgver.tar.bz2)
+source=(http://downloads.sourceforge.net/sourceforge/wxdcgui/$pkgname-$pkgver.tar.bz2
+ $pkgname.patch)
+md5sums=('c25d68c447cb9deb4262befdde9fccea'
+ 'e700bc3ef6221a9e36421e888c5a2e28')
-md5sums=('c25d68c447cb9deb4262befdde9fccea')
+prepare() {
+ cd "${srcdir}"/$pkgname-$pkgver
+
+ patch -Np1 -i "${srcdir}/valknut.patch"
+}
build() {
- cd "${srcdir}/$pkgname-$pkgver"
+ cd "${srcdir}"/$pkgname-$pkgver
./configure --prefix=/usr
- make || return 1
+ make
+}
+
+package() {
+ cd "${srcdir}"/$pkgname-$pkgver
+
make prefix="${pkgdir}/usr" install
}
diff --git a/valknut.patch b/valknut.patch
new file mode 100644
index 00000000000..1b445883716
--- /dev/null
+++ b/valknut.patch
@@ -0,0 +1,12 @@
+diff --git a/valknut/main.cpp b/valknut/main.cpp
+index a14009e..f3066b8 100644
+--- a/valknut/main.cpp
++++ b/valknut/main.cpp
+@@ -23,6 +23,7 @@
+
+ #include <stdlib.h>
+ #ifndef WIN32
++#include <unistd.h>
+ #include <signal.h>
+ #endif
+