summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin C. Doege2020-05-16 21:52:50 +0200
committerMartin C. Doege2020-05-16 21:52:50 +0200
commita10f7d012784ba437a9676066647e88d7482a0c2 (patch)
tree18fd4b992dfa07519a89ca7ca7d43bef3aa43823
parent255fcbbab62abd326ec28feccdc099f9f0141a2f (diff)
downloadaur-a10f7d012784ba437a9676066647e88d7482a0c2.tar.gz
add patch for sqlite issue
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD11
-rw-r--r--sqlite.patch10
3 files changed, 22 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 516eb01e6d7..9c38f850636 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = openastro
pkgdesc = Open source fully-featured astrology software
pkgver = 1.1.57
- pkgrel = 2
+ pkgrel = 3
url = http://www.openastro.org/
arch = i686
arch = x86_64
@@ -19,8 +19,10 @@ pkgbase = openastro
conflicts = swisseph-fixstars
source = openastro.org_1.1.57.orig.tar.gz::http://www.openastro.org/download.php?file=source&type=openastro
source = openastro.org-data_1.9.orig.tar.gz::http://openastro.org/download.php?file=source&type=data
+ source = sqlite.patch
md5sums = 4bb719ac3a22976d425f6337fd925d32
md5sums = bf9b6b2ba2ced1a532e16df11447d471
+ md5sums = afa8144cc701ab7405b63193c788f820
pkgname = openastro
diff --git a/PKGBUILD b/PKGBUILD
index dddd863b5d2..04f68cd1baf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname='openastro'
pkgver='1.1.57'
-pkgrel=2
+pkgrel=3
pkgdesc='Open source fully-featured astrology software'
arch=('i686' 'x86_64')
license=('GPL')
@@ -14,9 +14,16 @@ conflicts=('openastro-dev' 'swisseph_12' 'swisseph_18' 'swisseph-fixstars')
source=(
"openastro.org_"$pkgver".orig.tar.gz::http://www.openastro.org/download.php?file=source&type=openastro"
"openastro.org-data_1.9.orig.tar.gz::http://openastro.org/download.php?file=source&type=data"
+ "sqlite.patch"
)
md5sums=('4bb719ac3a22976d425f6337fd925d32'
- 'bf9b6b2ba2ced1a532e16df11447d471')
+ 'bf9b6b2ba2ced1a532e16df11447d471'
+ 'afa8144cc701ab7405b63193c788f820')
+
+prepare() {
+ cd $srcdir"/openastro.org-"$pkgver
+ patch -p0 < ../sqlite.patch
+}
package() {
cd $srcdir"/openastro.org-"$pkgver
diff --git a/sqlite.patch b/sqlite.patch
new file mode 100644
index 00000000000..2a823771afa
--- /dev/null
+++ b/sqlite.patch
@@ -0,0 +1,10 @@
+--- openastro 2020-05-16 21:43:53.214440469 +0200
++++ openastro 2020-05-16 21:43:49.494351096 +0200
+@@ -25,7 +25,6 @@
+
+ #pysqlite
+ import sqlite3
+-sqlite3.dbapi2.register_adapter(str, lambda s:s.decode('utf-8'))
+
+ #template processing
+ from string import Template