[staging] update gtkmm

This commit is contained in:
Weng Xuetian 2018-01-30 18:09:40 -08:00
parent b62aa03aa9
commit 9ddb93c302

View File

@ -1,27 +1,48 @@
pkgbase=gtkmm pkgbase=gtkmm
pkgname=('gtkmm') pkgname=(gtkmm gtkmm-docs)
pkgver=2.24.4 pkgver=2.24.5+6+g85967ecc
pkgrel=2 pkgrel=1
pkgdesc="C++ bindings for gtk2" pkgdesc="C++ bindings for GTK+ 2"
arch=('x86_64') url="http://www.gtkmm.org/"
depends=('gtk2' 'pangomm' 'atkmm') arch=(x86_64)
license=('LGPL') license=(LGPL)
options=('!emptydirs') depends=(gtk2 pangomm atkmm)
url="http://gtkmm.sourceforge.net/" makedepends=(git mm-common glibmm-docs cairomm-docs pangomm-docs atkmm-docs)
install=install _commit=85967ecc93d16892896626dfac54143b16ba9b9c # gtkmm-2-24
source=("http://ftp.gnome.org/pub/GNOME/sources/${pkgbase}/2.24/${pkgbase}-${pkgver}.tar.xz") source=("git+https://git.gnome.org/browse/gtkmm#commit=$_commit")
md5sums=('b9ac60c90959a71095f07f84dd39961d') sha256sums=('SKIP')
pkgver() {
cd $pkgbase
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd $pkgbase
NOCONFIGURE=1 ./autogen.sh
}
build() { build() {
cd "${srcdir}/${pkgbase}-${pkgver}" cd $pkgbase
./configure --prefix=/usr --disable-documentation
# glibmm 2.46 uses C++11 features
CXXFLAGS+=' -std=c++11'
./configure --prefix=/usr --enable-maintainer-mode
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make make
} }
package() { package_gtkmm() {
cd "${srcdir}/${pkgbase}-${pkgver}" cd $pkgbase
sed -i -e 's/^doc_subdirs/#doc_subdirs/' Makefile sed -i -e 's/^doc_subdirs/#doc_subdirs/' Makefile
make DESTDIR="$pkgdir" install
make DESTDIR="${pkgdir}" install }
package_gtkmm-docs() {
pkgdesc+=" (documentation)"
depends=()
cd $pkgbase
make -C docs DESTDIR="$pkgdir" install
} }