blob: 2ee21198fe273c255cff9e1bf90ab7b591744c79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Matthias Mailänder <matthias@mailaender.name>
pkgname=glade-sharp
pkgver=2.12.45
pkgrel=1
pkgdesc="Glade bindings for C#"
arch=(x86_64)
license=('LGPL')
url="https://www.mono-project.com/docs/gui/gtksharp/"
depends=('mono' 'libglade' '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
rm -rf "${pkgdir}/usr/bin/"
find "${pkgdir}/usr/lib/" -type f -not -name '*glade*' -delete
rm -rf "${pkgdir}/usr/lib/gtk/gtk-sharp-2.0"
find "${pkgdir}/usr/lib/mono/gac/" -type f -not -name '*glade*' -delete
find "${pkgdir}/usr/lib/mono/gtk-sharp-2.0/" -type l -not -name '*glade*' -delete
rm -rf "${pkgdir}/usr/lib/gtk/monodoc/"
find "${pkgdir}/usr/lib/pkgconfig/" -type f -not -name '*glade*' -delete
find "${pkgdir}/usr/share/gapi-2.0/" -type f -not -name '*glade*' -delete
}
|