aboutsummaryrefslogtreecommitdiffstats
path: root/main/glibmm/APKBUILD
blob: 5b72a1ac6abaacb059fac74ef4e855079e82c4f9 (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
40
41
42
43
44
45
46
47
48
49
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glibmm
pkgver=2.49.1
pkgrel=0
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.xz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

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="42081f45200c289155e4c2c07daa4dd1  glibmm-2.49.1.tar.xz"
sha256sums="89061533af001f3d3821a2bafded0f4ab1c4cef668868112cb6da1f174f99aa8  glibmm-2.49.1.tar.xz"
sha512sums="43fdc09ffc6855c8471967d43a7fc52695e2c4d6f94dfa4acc4db6a55d42e1a44f8e960382526d88f20fe45f6f492856348c8a2ec158352f2b387563a4e1702b  glibmm-2.49.1.tar.xz"