summaryrefslogtreecommitdiff
path: root/community/sakura
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
commit65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch)
treefbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /community/sakura
parentd53c44f055929b18d7d1b25f8367ee5836c435fc (diff)
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'community/sakura')
-rw-r--r--community/sakura/PKGBUILD23
-rw-r--r--community/sakura/deprecated_symbols.patch11
2 files changed, 26 insertions, 8 deletions
diff --git a/community/sakura/PKGBUILD b/community/sakura/PKGBUILD
index 4aff8641e..82260a849 100644
--- a/community/sakura/PKGBUILD
+++ b/community/sakura/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 93276 2013-07-01 04:10:57Z angvp $
+# $Id: PKGBUILD 102425 2013-12-10 20:26:05Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Dmitry N. Shilov <stormblast@land.ru>
pkgname=sakura
-pkgver=3.1.0
+pkgver=3.1.2
pkgrel=1
pkgdesc="A terminal emulator based on GTK and VTE"
arch=('i686' 'x86_64')
@@ -11,17 +11,25 @@ url="https://launchpad.net/sakura"
license=('GPL')
depends=('vte3' 'libxft' 'desktop-file-utils')
makedepends=('cmake')
-source=("https://launchpad.net/sakura/trunk/${pkgver}/+download/${pkgname}-${pkgver}.tar.bz2")
+source=("https://launchpad.net/sakura/trunk/${pkgver}/+download/${pkgname}-${pkgver}.tar.bz2"
+ "deprecated_symbols.patch")
install=sakura.install
-sha1sums=('159abc2f83e912da1bfb35c9b239b092e78a044f')
+sha1sums=('c4d5356c228af112dda20b3db3eaf32868e91ab1'
+ '1c31086360f5ce9d6ca0e4303b6b8cf62266f4d1')
-build() {
+prepare() {
cd $srcdir/${pkgname}-${pkgver}
# Set default font size a bit smaller
sed -i 's|#define DEFAULT_FONT "Bitstream Vera Sans Mono 14"|#define DEFAULT_FONT "Bitstream Vera Sans Mono 10"|g' src/sakura.c
-
- # build & install
+
+ # deprecated gtk symbols are used but disabled... enabling
+ patch -Np1 -i ${srcdir}/deprecated_symbols.patch
+}
+
+build() {
+ cd $srcdir/${pkgname}-${pkgver}
+
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE .
make
}
@@ -35,4 +43,3 @@ package() {
${pkgdir}/usr/share/doc/${pkgname}/INSTALL
rm ${pkgdir}/usr/share/doc/${pkgname}/INSTALL
}
-
diff --git a/community/sakura/deprecated_symbols.patch b/community/sakura/deprecated_symbols.patch
new file mode 100644
index 000000000..6b81efd14
--- /dev/null
+++ b/community/sakura/deprecated_symbols.patch
@@ -0,0 +1,11 @@
+--- sakura-3.1.2/CMakeLists.txt.bak 2013-12-10 21:02:16.853828972 +0100
++++ sakura-3.1.2/CMakeLists.txt 2013-12-10 21:02:45.473679293 +0100
+@@ -38,7 +38,7 @@
+ IF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
+ SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
+ ELSE (${CMAKE_BUILD_TYPE} NOT MATCHES "Debug")
+- SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wno-deprecated-declarations -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED")
++ SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wno-deprecated-declarations")
+ ENDIF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
+
+ INCLUDE_DIRECTORIES (. ${GTK_INCLUDE_DIRS} ${VTE_INCLUDE_DIRS})