[arch-commits] Commit in paperwork/trunk (PKGBUILD)

2020-10-26 Thread Balló György via arch-commits
Date: Tuesday, October 27, 2020 @ 06:58:42
  Author: bgyorgy
Revision: 734120

upgpkg: paperwork 2.0-1: Update to new version

Modified:
  paperwork/trunk/PKGBUILD

--+
 PKGBUILD |   36 +---
 1 file changed, 21 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-10-27 03:02:10 UTC (rev 734119)
+++ PKGBUILD2020-10-27 06:58:42 UTC (rev 734120)
@@ -1,7 +1,7 @@
 # Maintainer: Balló György 
 
 pkgname=paperwork
-pkgver=1.3.1
+pkgver=2.0
 pkgrel=1
 pkgdesc="Personal document manager for GNOME to manage scanned documents and 
PDFs"
 arch=(any)
@@ -8,13 +8,14 @@
 url="https://openpaper.work/";
 license=(GPL3)
 depends=(gtk3 libinsane libnotify poppler-glib python-cairo python-dateutil 
python-distro
- python-gobject python-levenshtein python-natsort python-pillowfight 
python-pycountry
- python-pydbus python-pyenchant python-pyocr python-setuptools 
python-simplebayes
- python-termcolor python-whoosh python-xdg)
+ python-gobject python-levenshtein python-pillowfight python-pycountry 
python-pydbus
+ python-pyocr python-setuptools python-simplebayes python-whoosh 
python-pyxdg)
 makedepends=(git)
-_commit=7834d8f21b9013f97a5d6c6bf9eb4ce89088d93a  # tags/1.3.1^0
-source=("git+https://gitlab.gnome.org/World/OpenPaperwork/paperwork.git#commit=$_commit";)
-sha256sums=('SKIP')
+_commit=24ba2639601d8fb51836d822c61e46836c8c1069  # tags/2.0^0
+source=("git+https://gitlab.gnome.org/World/OpenPaperwork/paperwork.git#commit=$_commit";
+
"$pkgname-$pkgver-data.tar.gz::https://download.openpaper.work/data/paperwork/master_${_commit:0:8}/data.tar.gz";)
+sha256sums=('SKIP'
+'10e89ab9877c57931c1a5cfebe7f4ef452374abd81e509c6b0d9d0e5dc12c431')
 
 pkgver() {
   cd $pkgname
@@ -23,16 +24,21 @@
 
 build() {
   cd $pkgname
-  make
+  tar -xvzf ../$pkgname-$pkgver-data.tar.gz
+  make version version=$pkgver
+  make l10n_compile
 }
 
 package() {
-  cd $pkgname/paperwork-backend
-  python3 setup.py install --root="$pkgdir" --optimize=1
+  cd $pkgname
+  for dir in openpaperwork-{core,gtk} paperwork-{backend,gtk}; do
+pushd $dir
+python3 setup.py install --root="$pkgdir" --optimize=1
+popd
+  done
 
-  cd ../paperwork-gtk
-  python3 setup.py install --root="$pkgdir" --optimize=1
-
-  cd "$pkgdir"/usr/lib/python3.8/site-packages/paperwork/frontend/
-  PYTHONPATH=`echo "$pkgdir"/usr/lib/python*/site-packages/` python3 -c 
'import shell; shell.install_system(icon_basedir="../../../../../share/icons", 
data_basedir="../../../../../share")'
+  PYTHONPATH=`echo "$pkgdir"/usr/lib/python*/site-packages/` \
+"$pkgdir"/usr/bin/paperwork-gtk install \
+  --icon_base_dir="$pkgdir/usr/share/icons" \
+  --data_base_dir="$pkgdir/usr/share"
 }


[arch-commits] Commit in paperwork/trunk (PKGBUILD)

2020-01-08 Thread Balló György via arch-commits
Date: Wednesday, January 8, 2020 @ 23:45:13
  Author: bgyorgy
Revision: 550883

upgpkg: paperwork 1.3.1-1: Update to new version

Modified:
  paperwork/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-01-08 23:43:15 UTC (rev 550882)
+++ PKGBUILD2020-01-08 23:45:13 UTC (rev 550883)
@@ -1,8 +1,8 @@
 # Maintainer: Balló György 
 
 pkgname=paperwork
-pkgver=1.3.0
-pkgrel=2
+pkgver=1.3.1
+pkgrel=1
 pkgdesc="Personal document manager for GNOME to manage scanned documents and 
PDFs"
 arch=(any)
 url="https://openpaper.work/";
@@ -12,7 +12,7 @@
  python-pydbus python-pyenchant python-pyocr python-setuptools 
python-simplebayes
  python-termcolor python-whoosh python-xdg)
 makedepends=(git)
-_commit=02b0c435cdcf124667c172d24b33aadf83c5845b  # tags/1.3.0^0
+_commit=7834d8f21b9013f97a5d6c6bf9eb4ce89088d93a  # tags/1.3.1^0
 
source=("git+https://gitlab.gnome.org/World/OpenPaperwork/paperwork.git#commit=$_commit";)
 sha256sums=('SKIP')
 


[arch-commits] Commit in paperwork/trunk (PKGBUILD)

2019-11-04 Thread Felix Yan via arch-commits
Date: Monday, November 4, 2019 @ 08:13:28
  Author: felixonmars
Revision: 523632

Python 3.8 rebuild

Modified:
  paperwork/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-11-04 08:13:28 UTC (rev 523631)
+++ PKGBUILD2019-11-04 08:13:28 UTC (rev 523632)
@@ -2,7 +2,7 @@
 
 pkgname=paperwork
 pkgver=1.3.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Personal document manager for GNOME to manage scanned documents and 
PDFs"
 arch=(any)
 url="https://openpaper.work/";


[arch-commits] Commit in paperwork/trunk (PKGBUILD)

2019-08-29 Thread Balló György via arch-commits
Date: Thursday, August 29, 2019 @ 17:12:21
  Author: bgyorgy
Revision: 504978

upgpkg: paperwork 1.3.0-1

Update to new version

Modified:
  paperwork/trunk/PKGBUILD

--+
 PKGBUILD |   34 +++---
 1 file changed, 7 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-08-29 17:08:15 UTC (rev 504977)
+++ PKGBUILD2019-08-29 17:12:21 UTC (rev 504978)
@@ -1,18 +1,18 @@
 # Maintainer: Balló György 
 
 pkgname=paperwork
-pkgver=1.2.4
-pkgrel=5
+pkgver=1.3.0
+pkgrel=1
 pkgdesc="Personal document manager for GNOME to manage scanned documents and 
PDFs"
 arch=(any)
 url="https://openpaper.work/";
 license=(GPL3)
-depends=(gtk3 libnotify poppler-glib python-cairo python-dateutil 
python-gobject
- python-levenshtein python-natsort python-pillowfight python-pycountry 
python-pyenchant
- python-pyinsane python-pyocr python-setuptools python-simplebayes 
python-termcolor
- python-whoosh python-xdg)
+depends=(gtk3 libinsane libnotify poppler-glib python-cairo python-dateutil 
python-distro
+ python-gobject python-levenshtein python-natsort python-pillowfight 
python-pycountry
+ python-pydbus python-pyenchant python-pyocr python-setuptools 
python-simplebayes
+ python-termcolor python-whoosh python-xdg)
 makedepends=(git)
-_commit=36c00eaac636c6fa6db58f2f86a01e1c1abf2398  # tags/1.2.4^0
+_commit=02b0c435cdcf124667c172d24b33aadf83c5845b  # tags/1.3.0^0
 
source=("git+https://gitlab.gnome.org/World/OpenPaperwork/paperwork.git#commit=$_commit";)
 sha256sums=('SKIP')
 
@@ -21,26 +21,6 @@
   git describe --tags | sed 's/-/+/g'
 }
 
-prepare() {
-  cd $pkgname
-
-  # https://gitlab.gnome.org/World/OpenPaperwork/paperwork/merge_requests/781
-  git cherry-pick -n d1da8cd20554aa1d3c766855c251a5a643d2abb4
-
-  # https://gitlab.gnome.org/World/OpenPaperwork/paperwork/merge_requests/782
-  git cherry-pick -n 318d9ef80a7dc21da7ad45fa46c11c8fb19ec8fb
-
-  # https://gitlab.gnome.org/World/OpenPaperwork/paperwork/merge_requests/783
-  git cherry-pick -n 2ffb468a41d28eceda3afe869dd8c5af70203bf4
-
-  # https://gitlab.gnome.org/World/OpenPaperwork/paperwork/issues/812
-  git cherry-pick -n ad4555f9904805e4fd56a30ca6529536edb0f919
-
-  # https://gitlab.gnome.org/World/OpenPaperwork/paperwork/merge_requests/785
-  sed -i 's/datadir, "appdata"/datadir, "metainfo"/' 
paperwork-gtk/src/paperwork/frontend/shell.py
-  sed -i 
's|https://raw.githubusercontent.com/openpaperwork/paperwork-screenshots/master/1.2.1/|https://gitlab.gnome.org/World/OpenPaperwork/paperwork-screenshots/raw/master/1.2.1/|'
 paperwork-gtk/data/work.openpaper.Paperwork.appdata.xml
-}
-
 build() {
   cd $pkgname
   make


[arch-commits] Commit in paperwork/trunk (PKGBUILD)

2018-12-24 Thread Balló György via arch-commits
Date: Tuesday, December 25, 2018 @ 00:57:30
  Author: bgyorgy
Revision: 417879

upgpkg: paperwork 1.2.4-4

Fix AppStream metadata

Modified:
  paperwork/trunk/PKGBUILD

--+
 PKGBUILD |5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-12-25 00:39:26 UTC (rev 417878)
+++ PKGBUILD2018-12-25 00:57:30 UTC (rev 417879)
@@ -2,7 +2,7 @@
 
 pkgname=paperwork
 pkgver=1.2.4
-pkgrel=3
+pkgrel=4
 pkgdesc="Personal document manager for GNOME to manage scanned documents and 
PDFs"
 arch=(any)
 url="https://openpaper.work/";
@@ -43,6 +43,9 @@
 
   # https://gitlab.gnome.org/World/OpenPaperwork/paperwork/issues/812
   patch -Np1 -i 
../0001-util-find_language-New-versions-of-pycountry-do-not-.patch
+
+  # https://gitlab.gnome.org/World/OpenPaperwork/paperwork
+  sed -i 's/datadir, "appdata"/datadir, "metainfo"/' 
paperwork-gtk/src/paperwork/frontend/shell.py
 }
 
 build() {