aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mozo/APKBUILD
blob: 668b31817ad119e6acde6df80b9386ae16b00dac (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
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mozo
pkgver=1.10.0
pkgrel=0
pkgdesc="A menu editor for MATE"
url="https://github.com/mate-desktop/mozo"
arch="noarch"
license="GPLv2"
depends=""
depends_dev=""
makedepends="$depends_dev intltool mate-menus-dev glib-dev py-gobject-dev"
install=""
subpackages="$pkgname-doc $pkgname-lang"
source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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

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

md5sums="f4936d3f61402fa43746c09bda464a3e  mozo-1.10.0.tar.xz"
sha256sums="b84bd95da46bfda950a73eda1b47b4d7d1e4814aa2eba76a1d7e4fb07489118d  mozo-1.10.0.tar.xz"
sha512sums="99f76b57565fe505a52ffd835453ed5e32ae9a5dde14ff1e10d6a066e70841162c5b061293047a11db31de9d1404a1d768e663d05154b3d88735ba1def368f4d  mozo-1.10.0.tar.xz"