summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBachir Soussi Chiadmi2017-06-06 21:51:13 +0200
committerBachir Soussi Chiadmi2017-06-06 21:51:13 +0200
commit78af5f0f2a420db9729f5e7a7bf6e7e5b132018d (patch)
treece7ad906fedefb06929766f51523c11395aa9617
parent0e26e6a972373fe793b712b6fe3a99218612ebce (diff)
downloadaur-78af5f0f2a420db9729f5e7a7bf6e7e5b132018d.tar.gz
first release candidate package
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD22
2 files changed, 15 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cb79d9ec22c..23f980d70db 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Tue Jun 6 08:36:21 UTC 2017
+# Tue Jun 6 19:50:43 UTC 2017
pkgbase = cascade-git
pkgdesc = PyQt5 based appliaction for writing and layout printed documents.
- pkgver = r70.6819a26
+ pkgver = 0.1.alpha.r4.64587ef
pkgrel = 1
url = https://figureslibres.io/gogs/bachir/Cascade
arch = any
@@ -18,6 +18,7 @@ pkgbase = cascade-git
depends = python-beautifulsoup4
depends = pandoc
depends = python-pypandoc
+ depends = python-pygments
depends = qt5-base
depends = python-setuptools
depends = desktop-file-utils
diff --git a/PKGBUILD b/PKGBUILD
index 6a0fc9e007b..ecce67aafa1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,15 @@
-# Maintainer: Bachir Soussi Chiadmi (scbh at g-u-i dot me)
+# Maintainer: Bachir Soussi Chiadmi (bach at figureslibres dot io)
pkgname=cascade-git
-pkgver=r70.6819a26
+pkgver=0.1.alpha.r4.64587ef
pkgrel=1
pkgdesc="PyQt5 based appliaction for writing and layout printed documents."
arch=('any')
url="https://figureslibres.io/gogs/bachir/Cascade"
license=('AGPL')
-depends=('python' 'python-pyqt5' 'python-markdown' 'python-pygit2' 'python-beautifulsoup4' 'pandoc' 'python-pypandoc' 'qt5-base' 'python-setuptools' 'desktop-file-utils')
+depends=('python' 'python-pyqt5' 'python-markdown' 'python-pygit2' 'python-beautifulsoup4' 'pandoc' 'python-pypandoc' 'python-pygments' 'qt5-base' 'python-setuptools' 'desktop-file-utils')
# needs custom build of 'qt5-webkit-ng'
-# pip package, how to do that ?
-# 'sass' 'pyphen' 'python-pigments' 'pygments-stye-monokailight' 'pygments-stye-monokai-hcb'
makedepends=('coreutils' 'git' 'python' 'python-setuptools')
# provides=('cascade')
source=('git+https://figureslibres.io/gogs/bachir/Cascade.git' 'cascade.desktop' 'cascade.png')
@@ -20,7 +18,11 @@ md5sums=('SKIP' 'd1a8974b81ce913c816b6ff1bd329299' 'd2de8e22b3f16a03c393dc1b8878
pkgver() {
cd "$srcdir/Cascade"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ # without tags
+ # printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ # with tags
+ git describe --long --tags| sed 's/^v//g;s/\([^-]*-\)g/r\1/;s/-/./g'
+
}
# todo : do i need to build ? i think no
@@ -31,14 +33,14 @@ pkgver() {
# }
package() {
- # mkdir -p "$pkgdir/usr/local/bin"
- # install "$srcdir/tools.cascade/src/OSPKit" "$pkgdir/usr/bin/ospkit"
- # todo how to install all python files of the app ??
mkdir -p "$pkgdir/usr/share/applications"
install -Dm644 cascade.desktop "$pkgdir/usr/share/applications/cascade.desktop"
mkdir -p "$pkgdir/usr/share/pixmaps"
install -Dm644 cascade.png "$pkgdir/usr/share/pixmaps/cascade.png"
+ # PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps sass pyphen
+ # python -O -m compileall "${pkgdir}/path/to/module"
+
cd "$srcdir/Cascade"
- python setup.py install --root="$pkgdir/" --optimize=1
+ python setup.py install --root="$pkgdir/" --prefix=/usr/local/ --optimize=1
}