Browse Source

[trunk] -> [staging] 'gtk-sharp-2-2.12.45-3' add

master
Dudemanguy 2 years ago
parent
commit
bed9607e73
Signed by: Dudemanguy GPG Key ID: 4003D2EF625D6492
  1. 35
      gtk-sharp-2/repos/staging-x86_64/PKGBUILD
  2. 30
      gtk-sharp-2/repos/staging-x86_64/gtk-sharp2-2.12.12-gtkrange.patch
  3. 17
      gtk-sharp-2/trunk/PKGBUILD
  4. 30
      gtk-sharp-2/trunk/gtk-sharp2-2.12.12-gtkrange.patch

35
gtk-sharp-2/repos/staging-x86_64/PKGBUILD

@ -0,0 +1,35 @@
# Maintainer: tobias <tobias@archlinux.org>
pkgname=gtk-sharp-2
pkgver=2.12.45
pkgrel=3
pkgdesc="gtk2 bindings for C#"
arch=(x86_64)
license=('LGPL')
url="https://www.mono-project.com/docs/gui/gtksharp/"
depends=('mono' 'gtk2')
makedepends=('monodoc')
options=('!makeflags')
source=(https://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-${pkgver}.tar.gz
gtk-sharp2-2.12.12-gtkrange.patch)
sha256sums=('02680578e4535441064aac21d33315daa009d742cab8098ac8b2749d86fffb6a'
'26a1ade869ba1b54f37e544332e6e40cc6d3c93414a712d8605cb44fc212acf9')
prepare() {
cd gtk-sharp-${pkgver}
patch -Np1 -i ../gtk-sharp2-2.12.12-gtkrange.patch
}
build() {
cd gtk-sharp-${pkgver}
./configure --prefix=/usr --sysconfdir=/etc --disable-static
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd gtk-sharp-${pkgver}
make DESTDIR="${pkgdir}" install
}

30
gtk-sharp-2/repos/staging-x86_64/gtk-sharp2-2.12.12-gtkrange.patch

@ -0,0 +1,30 @@
diff --git a/sample/test/TestRange.cs b/sample/test/TestRange.cs
index 82fb811..29a8ee7 100644
--- a/sample/test/TestRange.cs
+++ b/sample/test/TestRange.cs
@@ -32,14 +32,14 @@ namespace WidgetViewer {
HScale hscale = new HScale (adjustment);
hscale.SetSizeRequest (150, -1);
- ((Range) hscale).UpdatePolicy = UpdateType.Delayed;
+ ((Gtk.Range) hscale).UpdatePolicy = UpdateType.Delayed;
hscale.Digits = 1;
hscale.DrawValue = true;
box2.PackStart (hscale, true, true, 0);
HScrollbar hscrollbar = new HScrollbar (adjustment);
- ((Range) hscrollbar).UpdatePolicy = UpdateType.Continuous;
+ ((Gtk.Range) hscrollbar).UpdatePolicy = UpdateType.Continuous;
box2.PackStart (hscrollbar, true, true, 0);
hscale = new HScale (adjustment);
@@ -59,7 +59,7 @@ namespace WidgetViewer {
vscale.SetSizeRequest (-1, 200);
vscale.Digits = 2;
vscale.DrawValue = true;
- ((Range) vscale).Inverted = true;
+ ((Gtk.Range) vscale).Inverted = true;
hbox.PackStart (vscale, true, true, 0);
vscale = new VScale (adjustment);

17
gtk-sharp-2/trunk/PKGBUILD

@ -2,16 +2,23 @@
pkgname=gtk-sharp-2
pkgver=2.12.45
pkgrel=2
pkgrel=3
pkgdesc="gtk2 bindings for C#"
arch=(x86_64)
license=('LGPL')
url="https://www.mono-project.com/docs/gui/gtksharp/"
depends=('mono' 'libglade' 'gtk2')
makedepends=('pkgconfig' 'monodoc')
depends=('mono' 'gtk2')
makedepends=('monodoc')
options=('!makeflags')
source=(https://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-${pkgver}.tar.gz)
sha256sums=('02680578e4535441064aac21d33315daa009d742cab8098ac8b2749d86fffb6a')
source=(https://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-${pkgver}.tar.gz
gtk-sharp2-2.12.12-gtkrange.patch)
sha256sums=('02680578e4535441064aac21d33315daa009d742cab8098ac8b2749d86fffb6a'
'26a1ade869ba1b54f37e544332e6e40cc6d3c93414a712d8605cb44fc212acf9')
prepare() {
cd gtk-sharp-${pkgver}
patch -Np1 -i ../gtk-sharp2-2.12.12-gtkrange.patch
}
build() {
cd gtk-sharp-${pkgver}

30
gtk-sharp-2/trunk/gtk-sharp2-2.12.12-gtkrange.patch

@ -0,0 +1,30 @@
diff --git a/sample/test/TestRange.cs b/sample/test/TestRange.cs
index 82fb811..29a8ee7 100644
--- a/sample/test/TestRange.cs
+++ b/sample/test/TestRange.cs
@@ -32,14 +32,14 @@ namespace WidgetViewer {
HScale hscale = new HScale (adjustment);
hscale.SetSizeRequest (150, -1);
- ((Range) hscale).UpdatePolicy = UpdateType.Delayed;
+ ((Gtk.Range) hscale).UpdatePolicy = UpdateType.Delayed;
hscale.Digits = 1;
hscale.DrawValue = true;
box2.PackStart (hscale, true, true, 0);
HScrollbar hscrollbar = new HScrollbar (adjustment);
- ((Range) hscrollbar).UpdatePolicy = UpdateType.Continuous;
+ ((Gtk.Range) hscrollbar).UpdatePolicy = UpdateType.Continuous;
box2.PackStart (hscrollbar, true, true, 0);
hscale = new HScale (adjustment);
@@ -59,7 +59,7 @@ namespace WidgetViewer {
vscale.SetSizeRequest (-1, 200);
vscale.Digits = 2;
vscale.DrawValue = true;
- ((Range) vscale).Inverted = true;
+ ((Gtk.Range) vscale).Inverted = true;
hbox.PackStart (vscale, true, true, 0);
vscale = new VScale (adjustment);
Loading…
Cancel
Save