core/glibmm/PKGBUILD

44 lines
851 B
Bash
Raw Normal View History

2011-09-25 06:04:42 +08:00
2010-05-17 15:50:50 +08:00
pkgbase=glibmm
pkgname=('glibmm' 'glibmm-docs')
pkgver=2.54.1
2015-01-05 21:55:25 +08:00
pkgrel=1
arch=('x86_64')
2010-03-14 23:48:48 +08:00
license=('LGPL')
depends=(glib2 libsigc++)
makedepends=(git mm-common perl-xml-parser clang)
_commit=1739f07e92763d1dd9092b96f244b6647dc19c91 # tags/2.54.1^0
source=("git+https://git.gnome.org/browse/glibmm#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgbase
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd $pkgbase
NOCONFIGURE=1 ./autogen.sh
}
2010-03-14 23:48:48 +08:00
build() {
cd $pkgbase
./configure --prefix=/usr --enable-maintainer-mode
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2011-09-25 06:04:42 +08:00
make
2010-05-17 15:50:50 +08:00
}
package_glibmm() {
cd $pkgbase
2010-05-17 15:50:50 +08:00
sed -i -e 's/^doc_subdirs/#doc_subdirs/' Makefile
make DESTDIR="$pkgdir" install
2010-05-17 15:50:50 +08:00
}
package_glibmm-docs() {
pkgdesc+=" (documentation)"
depends=()
cd $pkgbase
make -C docs DESTDIR="$pkgdir" install
2010-03-14 23:48:48 +08:00
}