aboutsummaryrefslogtreecommitdiffstats
path: root/main/shotwell
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-04-12 09:57:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-04-12 09:57:25 +0000
commitc3833d0cb48b3282425065ccf6d59d96ee60a54e (patch)
tree58589d63027bf53ecb1a23f91e06448e46e11cbf /main/shotwell
parentdf565c1039100c7e107d8c2c9f964c0812e05f7d (diff)
downloadaports-c3833d0cb48b3282425065ccf6d59d96ee60a54e.tar.bz2
aports-c3833d0cb48b3282425065ccf6d59d96ee60a54e.tar.xz
main/shotwell: moved from testing
Diffstat (limited to 'main/shotwell')
-rw-r--r--main/shotwell/APKBUILD45
-rw-r--r--main/shotwell/shotwell.post-install7
-rw-r--r--main/shotwell/shotwell.post-upgrade7
-rw-r--r--main/shotwell/shotwell.pre-deinstall7
4 files changed, 66 insertions, 0 deletions
diff --git a/main/shotwell/APKBUILD b/main/shotwell/APKBUILD
new file mode 100644
index 0000000000..b076a1d19e
--- /dev/null
+++ b/main/shotwell/APKBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=shotwell
+pkgver=0.9.1
+pkgrel=0
+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=""
+makedepends="intltool vala libgee-dev libunique-dev webkit-dev libexif-dev
+ librsvg-dev sqlite-dev udev-dev dbus-glib-dev libgphoto2-dev
+ libgexiv2-dev libraw-dev librsvg-dev gconf-dev json-glib-dev
+ gnome-vfs-dev m4"
+install=
+source="http://yorba.org/download/shotwell/${pkgver%.*}/shotwell-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch)
+ patch -p1 -i "$srcdir"/$i || return 1
+ ;;
+ esac
+ done
+}
+
+build ()
+{
+ cd $srcdir/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --disable-schemas-install \
+ --disable-desktop-update \
+ --disable-icon-update
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="1a98d1da59424a67b310cc39e8ad3368 shotwell-0.9.1.tar.bz2"
diff --git a/main/shotwell/shotwell.post-install b/main/shotwell/shotwell.post-install
new file mode 100644
index 0000000000..e6135da045
--- /dev/null
+++ b/main/shotwell/shotwell.post-install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for i in shotwell.schemas; do
+ echo "Installing GConf2 schema $i."
+ GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \
+ /usr/bin/gconftool-2 --makefile-install-rule /etc/gconf/schemas/$i >/dev/null
+done
diff --git a/main/shotwell/shotwell.post-upgrade b/main/shotwell/shotwell.post-upgrade
new file mode 100644
index 0000000000..e6135da045
--- /dev/null
+++ b/main/shotwell/shotwell.post-upgrade
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for i in shotwell.schemas; do
+ echo "Installing GConf2 schema $i."
+ GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \
+ /usr/bin/gconftool-2 --makefile-install-rule /etc/gconf/schemas/$i >/dev/null
+done
diff --git a/main/shotwell/shotwell.pre-deinstall b/main/shotwell/shotwell.pre-deinstall
new file mode 100644
index 0000000000..9d3a000300
--- /dev/null
+++ b/main/shotwell/shotwell.pre-deinstall
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for i in shotwell.schemas; do
+ echo "Uninstalling GConf2 schema $i."
+ GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \
+ /usr/bin/gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/$i >/dev/null
+done