aboutsummaryrefslogtreecommitdiffstats
path: root/main/glibmm/APKBUILD
blob: e7ca08598b20f19caa34d5ac37dbf7c490e9ce39 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glibmm
pkgver=2.28.2
pkgrel=1
pkgdesc="C++ wrapper for the GLib toolkit"
url="http://gtkmm.sourceforge.net/"
arch="all"
license="LGPL"
depends=
makedepends="glib-dev libsigc++-dev"
subpackages="$pkgname-dev $pkgname-doc"
depends_dev="libsigc++-dev"
source="http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr || return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}

dev() {
	mkdir -p "$subpkgdir"/usr/lib/
	mv "$pkgdir"/usr/lib/glibmm-2.4 "$subpkgdir"/usr/lib/
	default_dev
}

doc() {
	default_doc
	mkdir -p "$subpkgdir"/usr/share/
	mv "$pkgdir"/usr/share/devhelp "$subpkgdir"/usr/share/
}

md5sums="cf33d1861d09fb2952a6a1d69e0502e3  glibmm-2.28.2.tar.bz2"