summaryrefslogtreecommitdiffstats
path: root/main/shotwell/APKBUILD
blob: c344bb14a8686b4d43c0086ee10a23289385208e (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
50
51
52
53
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=shotwell
pkgver=0.14.1
pkgrel=2
pkgdesc="A digital photo organizer designed for the GNOME desktop environment"
url="http://yorba.org/shotwell/"
arch="all"
license="LGPL2.1"
install="shotwell.post-upgrade shotwell.post-install shotwell.pre-deinstall"
depends=""
subpackages="$pkgname-lang"
makedepends="intltool vala libgee-dev libunique3-dev webkitgtk-dev libexif-dev
	librsvg-dev sqlite-dev udev-dev dbus-glib-dev libgphoto2-dev
	libgexiv2-dev libraw-dev librsvg-dev json-glib-dev
	m4 gst-plugins-base1-dev bash gtk+3.0-dev rest-dev"
install=
source="http://yorba.org/download/shotwell/${pkgver%.*}/shotwell-$pkgver.tar.xz
        shotwell-0.14.1-LibRaw.patch"

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

build () {
	cd $srcdir/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--prefix=/usr \
		--disable-desktop-update \
		--disable-icon-update \
		|| return 1
	make
}

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

md5sums="bb5783f9265e1ce2d4c9f354987c3ab1  shotwell-0.14.1.tar.xz
e88e1cb2c546ad5601602184d078cb0b  shotwell-0.14.1-LibRaw.patch"
sha256sums="045c4833e23374b649e735661cedbbff8368624b6719547013db2c21c8402fef  shotwell-0.14.1.tar.xz
bc8daf4a573562939fd210e0edafa8a5555099e3c213b61475b38c205d4f2fb0  shotwell-0.14.1-LibRaw.patch"
sha512sums="cefc5130b7fd5bd2b7d7889c5ebba01e9a447e885ece8353e42cd4cd515c068722d2460a2cdf31a94824605091c06042e086986aff8fe2dd0b589ad2a2dce20b  shotwell-0.14.1.tar.xz
4db718df12bb46eab032cf59665d07e94941faeee7283cbf474e7b9be928885bd394076a88dc94cb84282610ac48b2d3b94d2525caf5f20df57b2dccbb37679d  shotwell-0.14.1-LibRaw.patch"