summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPeter Mattern2018-05-29 12:04:55 +0200
committerPeter Mattern2018-05-29 12:04:55 +0200
commited08af2cb3c57968e9deb2ecafa77e4984a0f125 (patch)
tree68858eef0d88d74d620fbc6c3fe8323ffec8699a /PKGBUILD
parent1c3099cb4d203597bdcd20cdf92b48fd93878791 (diff)
downloadaur-phototonic.tar.gz
Upstream update: release 2.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 13 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2675b7adbbb..a1bdd8ca1ab 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,30 +3,29 @@
# Contributor: Ofer Kashayov <oferkv at gmail dot com>
pkgname=phototonic
-pkgver=1.7.13
-pkgrel=2
-_commit=c1998178dfc49275c716250914ee1aac910ab908
+pkgver=2.1
+pkgrel=1
pkgdesc='Image Viewer and Organizer'
arch=('i686' 'x86_64')
url='https://github.com/oferkv/phototonic/'
license=('GPL3')
depends=('qt5-base' 'exiv2' 'hicolor-icon-theme')
optdepends=('qt5-imageformats: TIFF and TGA support' 'qt5-svg: SVG support')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/oferkv/phototonic/archive/$_commit.tar.gz")
-sha256sums=('28994936d559c8ffd92da661460c7b7e404455ef88293fcfc1d7de0640612852')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/oferkv/phototonic/archive/v${pkgver}.tar.gz")
+sha256sums=('a8b2dbc81750efabb65a4732b1704641afd4a4f772ef9c90817871ca2a52f5ef')
build() {
- cd $pkgname-$_commit
-
- qmake-qt5 PREFIX="/usr" \
- QMAKE_CFLAGS_RELEASE="$CPPFLAGS $CFLAGS" \
- QMAKE_CXXFLAGS_RELEASE="$CPPFLAGS $CXXFLAGS" \
- QMAKE_LFLAGS_RELEASE="$LDFLAGS"
+ rm -Rf build && mkdir build
+ cd build
+ qmake-qt5 ${srcdir}/${pkgname}-${pkgver} \
+ PREFIX="/usr" \
+ QMAKE_CFLAGS_RELEASE="${CPPFLAGS} ${CFLAGS}" \
+ QMAKE_CXXFLAGS_RELEASE="${CPPFLAGS} ${CXXFLAGS}" \
+ QMAKE_LFLAGS_RELEASE="${LDFLAGS}"
make
}
package() {
- cd $pkgname-$_commit
-
- make INSTALL_ROOT="$pkgdir" install
+ cd build
+ make INSTALL_ROOT="${pkgdir}" install
}