Commit 9ddb93c3 authored by Xuetian Weng's avatar Xuetian Weng

[staging] update gtkmm

parent b62aa03a
Pipeline #122 passed with stages
in 28 minutes and 18 seconds
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
}
package_gtkmm-docs() {
pkgdesc+=" (documentation)"
depends=()
make DESTDIR="${pkgdir}" install cd $pkgbase
make -C docs DESTDIR="$pkgdir" install
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment