Commit 93c9ff81 authored by Philip Müller's avatar Philip Müller

[pkg-upd] 0.9.0-6

parent fecab6e4
......@@ -13,9 +13,9 @@ pkgbase=octopi
pkgname=('octopi' 'octopi-repoeditor' 'octopi-pacmanhelper' 'octopi-cachecleaner'
'octopi-notifier-qt5' 'octopi-notifier-frameworks')
pkgver=0.9.0
pkgrel=5
pkgrel=6
# This is the release package so the below _gitcommit variable should (usually) be commented out.
#_gitcommit=
_gitcommit=359584ba93ebe95df63cbc6d680f74b9e20345c6
arch=('i686' 'x86_64')
url="http://octopiproject.wordpress.com"
license=('GPL2')
......@@ -27,19 +27,19 @@ else
source=("octopi-${pkgver}.tar.gz::https://github.com/aarnt/octopi/archive/v${pkgver}.tar.gz")
fi
source+=('remove-qdialog.patch')
sha256sums=('f6c7fe6bbcc26a79b1e455a42a8dc906bee4edd1b386b4f76178f006f4d7f822'
sha256sums=('acb94b8a5d99e62717dff7af314430355a01602719337090393ddfc7502e4c17'
'af8ebc8892a37c866556df391a078a50c6c56a4425e7ef31d35b27871e490229')
prepare() {
if [ -z $_gitcommit ]; then
if [ ! -z ${_gitcommit} ]; then
cd "${srcdir}/${pkgbase}-${_gitcommit}"
else
cd "${srcdir}/${pkgbase}-${pkgver}"
fi
# sed version
sed -i -e "s|0.9.0|${pkgver}-${pkgrel}|g" src/strconstants.cpp
sed -i -e "s|0.9.1 (dev)|${pkgver}-${pkgrel}|g" src/strconstants.cpp
# fix network detection
patch -p1 -i $srcdir/remove-qdialog.patch
......@@ -53,7 +53,7 @@ build() {
cpucount=$(grep -c processor /proc/cpuinfo 2>/dev/null)
jc=$((${cpucount:-1}))
if [ -z $_gitcommit ]; then
if [ ! -z ${_gitcommit} ]; then
cd "${srcdir}/${pkgbase}-${_gitcommit}"
else
cd "${srcdir}/${pkgbase}-${pkgver}"
......@@ -107,7 +107,7 @@ package_octopi() {
'pacmanlogviewer: to view pacman log files')
replaces=('octopi-qt5')
if [ -z $_gitcommit ]; then
if [ ! -z ${_gitcommit} ]; then
cd "${srcdir}/${pkgbase}-${_gitcommit}"
else
cd "${srcdir}/${pkgbase}-${pkgver}"
......@@ -128,7 +128,7 @@ package_octopi-pacmanhelper() {
pkgdesc="Pacman helper for Octopi notifier"
depends=('qt5-base')
if [ -z $_gitcommit ]; then
if [ ! -z ${_gitcommit} ]; then
cd "${srcdir}/${pkgbase}-${_gitcommit}"
else
cd "${srcdir}/${pkgbase}-${pkgver}"
......@@ -145,7 +145,7 @@ package_octopi-repoeditor() {
pkgdesc="Repoeditor for Octopi"
depends=('qt5-base')
if [ "${_gitcommit}" != "" ]; then
if [ ! -z ${_gitcommit} ]; then
cd "${srcdir}/${pkgbase}-${_gitcommit}"
else
cd "${srcdir}/${pkgbase}-${pkgver}"
......@@ -158,7 +158,7 @@ package_octopi-cachecleaner() {
pkgdesc="Cachecleaner for Octopi"
depends=('qt5-base')
if [ -z $_gitcommit ]; then
if [ ! -z ${_gitcommit} ]; then
cd "${srcdir}/${pkgbase}-${_gitcommit}"
else
cd "${srcdir}/${pkgbase}-${pkgver}"
......@@ -177,7 +177,7 @@ package_octopi-notifier-qt5() {
provides=("octopi-notifier=${pkgver}")
replaces=('octopi-qt5-notifier' 'octopi-notifier-qt4')
if [ -z $_gitcommit ]; then
if [ ! -z ${_gitcommit} ]; then
cd "${srcdir}/${pkgbase}-${_gitcommit}"
else
cd "${srcdir}/${pkgbase}-${pkgver}"
......@@ -195,7 +195,7 @@ package_octopi-notifier-frameworks() {
conflicts=('octopi-notifier')
provides=("octopi-notifier=${pkgver}")
if [ -z $_gitcommit ]; then
if [ ! -z ${_gitcommit} ]; then
cd "${srcdir}/${pkgbase}-${_gitcommit}"
else
cd "${srcdir}/${pkgbase}-${pkgver}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment