summaryrefslogtreecommitdiffstats
path: root/libglademm/PKGBUILD
blob: b2c65cf34d1e05ecd6d8504de77a6245e22699c8 (plain) (blame)
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
# Contributor: kj_sh604 <43.splash@gmail.com>

pkgname=libglademm
pkgver=2.6.7
pkgrel=604
pkgdesc="A C++ wrapper for libglade."
arch=('x86_64')
url="http://gtkmm.sourceforge.net/"
license=('LGPL')
depends=('libglade' 'gtkmm')
makedepends=('pkgconfig')

# use this source when PKGBUILD breaks in the future:
# source=(https://aedrielkylejavier.me/assets/${pkgname}/2.6/${pkgname}-${pkgver}.tar.bz2)

source=(https://download.gnome.org/sources/${pkgname}/2.6/${pkgname}-${pkgver}.tar.bz2)

build() {
  cd ${pkgname}-${pkgver}
  CXXFLAGS+=' -std=c++11'
  LDFLAGS='-Wl,-rpath,/usr/lib -lxml2'
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var

  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
sha256sums=('38543c15acf727434341cc08c2b003d24f36abc22380937707fc2c5c687a2bc3')