aboutsummaryrefslogtreecommitdiffstats
path: root/testing/meld/APKBUILD
blob: 0f283357dd4d5ad60fc471358892d867b2ceeee5 (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
# Contributor: August Klein <amatcoder_at_gmail.com>
# Maintainer: August Klein <amatcoder_at_gmail.com>
pkgname=meld
pkgver=1.8.6
pkgrel=0
pkgdesc="A visual diff and merge tool"
url="http://meldmerge.org"
arch="noarch"
license="GPL2"
depends="py-gtk"
depends_dev=""
makedepends="intltool itstool gnome-doc-utils"
install=""
subpackages="$pkgname-lang $pkgname-doc"
source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${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"
	make prefix=/usr || return 1
}

package() {
	cd "$_builddir"
	make prefix=/usr DESTDIR="${pkgdir}" install \
	update_desktop_database= update_mime_database= || return 1
}

doc() {
	mkdir -p "$subpkgdir"/usr/share/gnome || return 1
	mkdir -p "$subpkgdir"/usr/share/omf || return 1

	mv "$pkgdir"/usr/share/gnome/* "$subpkgdir"/usr/share/gnome/ || return 1
	mv "$pkgdir"/usr/share/omf/* "$subpkgdir"/usr/share/omf/ || return 1
}

md5sums="872e6c28a7913f1eab1cacf27d6d1e5a  meld-1.8.6.tar.xz"
sha256sums="af96682b8f4bf3ad4221c853b1516218d62a17ff43c38f4a83e7e8ac6736e8a5  meld-1.8.6.tar.xz"
sha512sums="7a1c52c6686efab1e233f1f1506b9f0a8d4c040150fefc63d09510156a17819c375c9d10090c97e4a913ce3887d118ee09e75af7de4def24dfc5a75d5ad71511  meld-1.8.6.tar.xz"