summaryrefslogtreecommitdiff
path: root/community/fotoxx
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/fotoxx
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/fotoxx')
-rw-r--r--community/fotoxx/PKGBUILD29
-rw-r--r--community/fotoxx/fotoxx.install17
2 files changed, 46 insertions, 0 deletions
diff --git a/community/fotoxx/PKGBUILD b/community/fotoxx/PKGBUILD
new file mode 100644
index 000000000..96bb1cbc2
--- /dev/null
+++ b/community/fotoxx/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+pkgname=fotoxx
+pkgver=11.04
+pkgrel=4
+pkgdesc="A program for improving image files made with a digital camera"
+url="http://kornelix.squarespace.com/fotoxx"
+arch=('i686' 'x86_64')
+license=('GPL3')
+depends=('gtk2' 'gimp-ufraw' 'perl-exiftool' 'xdg-utils')
+optdepends=('mashup: for printing from within fotoxx' 'brasero: for burning')
+source=("http://kornelix.squarespace.com/storage/downloads/$pkgname-$pkgver.tar.gz")
+md5sums=('4b90ca45375d7502a98f6ce556a1d9b7')
+replaces=('fotox')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ make PREFIX=/usr \
+ CFLAGS+="-c `pkg-config --cflags gtk+-2.0`" \
+ LFLAGS+="`pkg-config --libs gtk+-2.0 gthread-2.0`"
+ sed -i 's#/local##' desktop
+ sed -i 's+^# ++' desktop
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ install -Dm644 desktop \
+ $pkgdir/usr/share/applications/$pkgname.desktop
+ make DESTDIR=$pkgdir PREFIX=/usr install
+}
diff --git a/community/fotoxx/fotoxx.install b/community/fotoxx/fotoxx.install
new file mode 100644
index 000000000..03d1a4eaf
--- /dev/null
+++ b/community/fotoxx/fotoxx.install
@@ -0,0 +1,17 @@
+post_install() {
+ echo "Adding desktop file"
+ echo "[Desktop Entry]" > /usr/share/applications/fotoxx.desktop
+ echo "Name=fotoxx" >> /usr/share/applications/fotoxx.desktop
+ echo "Categories=Graphics" >> /usr/share/applications/fotoxx.desktop
+ echo "Type=Application" >> /usr/share/applications/fotoxx.desktop
+ echo "Terminal=false" >> /usr/share/applications/fotoxx.desktop
+ echo "Exec=/usr/bin/fotoxx" >> /usr/share/applications/fotoxx.desktop
+ echo "Icon=/usr/share/icons/fotoxx.png" >> /usr/share/applications/fotoxx.desktop
+ echo "GenericName=Digital Photo Editor" >> /usr/share/applications/fotoxx.desktop
+}
+post_update() {
+ post_install
+}
+pre_remove() {
+ [ -f /usr/share/applications/fotoxx.desktop ] && rm /usr/share/applications/fotoxx.desktop
+}