Username: Password: Remember me
# Maintainer: gnastyle for Chakra
 
pkgname=advancedphoto
pkgver=1.3.0
pkgrel=1
pkgdesc='Advanced Photo View & Rotate & Flip & Resize Photos'
arch=('x86_64')
url="http://advancedphoto.sourceforge.net/"
screenshot='http://qt-apps.org/CONTENT/content-pre3/168537-3.png'
license=('GPL')
depends=('qt5-base' 'qt5-imageformats')
source=('http://downloads.sourceforge.net/project/advancedphoto/Linux%20x64/Advanced_Photo_1.3.0_x64.deb')
sha512sums=('a05c7c513147dac59cb89a4eda02fb043374b5bb90ec48d0d5f6ac46b510a5faf7505f5045c08da49952df49e60c281fb0abb7875259885ef2642e139eee8095')
 
package() {
  cd ${srcdir}
  tar -Jxf ${srcdir}/data.tar.xz
 
  #move desktop and png files where they belong
  install -D  "${srcdir}/opt/Advanced_Photo/Advanced Photo" \
  ${pkgdir}/usr/bin/${pkgname}
  install -D  ${srcdir}/usr/share/applications/AdvancedPhoto.desktop \
  ${pkgdir}/usr/share/applications/${pkgname}.desktop
  install -D  ${srcdir}/usr/share/icons/hicolor/256x256/apps/AdvancedPhoto.png \
  ${pkgdir}/usr/share/pixmaps/${pkgname}.png
 
  sed -i s!"AdvancedPhoto %f"!${pkgname}! \
  ${pkgdir}/usr/share/applications/${pkgname}.desktop
 
  sed -i s!AdvancedPhoto.png!${pkgname}.png! \
  ${pkgdir}/usr/share/applications/${pkgname}.desktop
 }