summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornull2015-09-01 22:57:06 -0400
committernull2015-09-01 22:57:06 -0400
commit47708efc0c3a710440f7b13a10064be26114fc4b (patch)
tree2b15b3dff27774d2f88b840f3be8fb02f3bd0bdd
downloadaur-47708efc0c3a710440f7b13a10064be26114fc4b.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD32
-rw-r--r--searchmonkey-2.0.0-gcc47.diff33
-rw-r--r--searchmonkey.desktop8
4 files changed, 91 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7842a0f350b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = searchmonkey
+ pkgdesc = A powerful GUI search utility for matching regex patterns
+ pkgver = 2.0.0
+ pkgrel = 2
+ url = http://searchmonkey.sourceforge.net/
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ depends = qt4
+ source = http://downloads.sourceforge.net/searchmonkey/searchmonkey_v2.0.0.zip
+ source = searchmonkey-2.0.0-gcc47.diff
+ source = searchmonkey.desktop
+ md5sums = 239a8171d54c10810da6b131ba5fbd64
+ md5sums = 86841c3796e149cd12e5b3a27cdfc170
+ md5sums = 5535ab5a696309d44cc68c8d15f59693
+
+pkgname = searchmonkey
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..55d80b05d1e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: TDY <tdy@archlinux.info>
+# Contributor: Dmitry N. Shilov aka StormBlast <stormblast@land.ru>
+
+pkgname=searchmonkey
+pkgver=2.0.0
+pkgrel=2
+pkgdesc="A powerful GUI search utility for matching regex patterns"
+arch=('i686' 'x86_64')
+url="http://searchmonkey.sourceforge.net/"
+license=('GPL3')
+depends=('qt4')
+source=(http://downloads.sourceforge.net/$pkgname/${pkgname}_v$pkgver.zip
+ $pkgname-$pkgver-gcc47.diff
+ $pkgname.desktop)
+md5sums=('239a8171d54c10810da6b131ba5fbd64'
+ '86841c3796e149cd12e5b3a27cdfc170'
+ '5535ab5a696309d44cc68c8d15f59693')
+
+build() {
+ cd "$srcdir/${pkgname}_v$pkgver"
+ patch -Np1 -i ../$pkgname-$pkgver-gcc47.diff
+ qmake-qt4 && make
+}
+
+package() {
+ cd "$srcdir/${pkgname}_v$pkgver"
+ install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 ../$pkgname.desktop \
+ "$pkgdir/usr/share/applications/$pkgname.desktop"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/searchmonkey-2.0.0-gcc47.diff b/searchmonkey-2.0.0-gcc47.diff
new file mode 100644
index 00000000000..1ccbfeaab10
--- /dev/null
+++ b/searchmonkey-2.0.0-gcc47.diff
@@ -0,0 +1,33 @@
+diff -Naur *0~/Utility.h searchmonkey_v2.0.0/Utility.h
+--- *0~/Utility.h 2012-12-27 23:14:46.059215379 -0600
++++ searchmonkey_v2.0.0/Utility.h 2012-12-27 23:14:56.242394809 -0600
+@@ -98,17 +98,11 @@
+ for_each(container.begin(), container.end(), bind1st(mem_fun(op), caller));
+ }
+ template <typename T>
+-bool IsValueInRange(T value, T lowerBound, T upperBound)
+-{
+- return LowerBoundFit(value, lowerBound) && UpperBoundFit(value, upperBound);
+-}
+-template <typename T>
+ bool BoundSpecified(T boundValue)
+ {
+ return false;
+ }
+-template <typename T>
+-bool LowerBoundFit(T value, T lowerBound)
++template <typename T> bool LowerBoundFit(T value, T lowerBound)
+ {
+ if (BoundSpecified(lowerBound) == false)
+ return true;
+@@ -129,5 +123,10 @@
+
+ return false;
+ }
++template <typename T>
++bool IsValueInRange(T value, T lowerBound, T upperBound)
++{
++ return LowerBoundFit(value, lowerBound) && UpperBoundFit(value, upperBound);
++}
+
+ #endif
diff --git a/searchmonkey.desktop b/searchmonkey.desktop
new file mode 100644
index 00000000000..d343483ff09
--- /dev/null
+++ b/searchmonkey.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Searchmonkey
+Comment=Find text files quickly using regular expressions
+Exec=searchmonkey
+Icon=searchmonkey
+Categories=System;