summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2019-06-22 14:09:12 +0200
committerhaawda2019-06-22 14:09:12 +0200
commit048584980cbea3de7cc60b06d69db129a246b0dd (patch)
tree65c8027f2e9e1c6aeafc8fc50751f3bf61964319
parent7bbfba188416fdab9dcd29210bcbe16d1028c777 (diff)
downloadaur-048584980cbea3de7cc60b06d69db129a246b0dd.tar.gz
new pkgver function
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD45
2 files changed, 22 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e7795334932..74a52752797 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = retext-git
pkgdesc = A simple editor for Markdown and ReStructuredText markup languages.
- pkgver = 7.0.0.r100.g5bc778e
+ pkgver = 7.1.0.r1110.7fdc3ad
pkgrel = 1
url = https://github.com/retext-project/retext
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index b11e1bcb3b4..8c588ae71e1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=retext-git
-pkgver=7.0.0.r100.g5bc778e
+pkgver=7.1.0.r1110.7fdc3ad
pkgrel=1
pkgdesc="A simple editor for Markdown and ReStructuredText markup languages."
arch=('any')
@@ -31,34 +31,31 @@ sha256sums=('SKIP'
'6fef80cccb14813d9cc74810c397a6cd7831d1ca243536759a47c6e8b6cc977a')
pkgver() {
- cd $pkgname
- ( set -o pipefail
- git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
- )
+ cd $pkgname
+ printf "%s.r%s.%s" "$(awk -F\= '/^VERSION/ {print $2}' setup.py | tr -d \' | tr -d [:blank:])" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build () {
- cd $pkgname/locale
- lrelease-qt5 *.ts
+ cd $pkgname/locale
+ lrelease-qt5 *.ts
}
package () {
- cd $pkgname
- python setup.py install --root="$pkgdir"
-
- # install icons
- for size in 16 22 24 32 48 128; do
- mkdir -p "$pkgdir"/usr/share/icons/hicolor/${size}x${size}/apps
- convert -resize $size icons/retext.png "$pkgdir"/usr/share/icons/hicolor/${size}x${size}/apps/retext.png
- done
- install -Dm644 icons/retext.svg "$pkgdir"/usr/share/icons/scalable/apps/retext.svg
-
- # install mime files
- install -Dm644 "$srcdir"/x-retext-markdown.xml "$pkgdir"/usr/share/mime/packages/x-retext-markdown.xml
- install -Dm644 "$srcdir"/x-retext-rst.xml "$pkgdir"/usr/share/mime/packages/x-retext-rst.xml
-
- # install desktop file
- install -Dm644 "$srcdir"/retext.desktop "$pkgdir"/usr/share/applications/retext.desktop
+ cd $pkgname
+ python setup.py install --root="$pkgdir"
+
+ # install icons
+ for size in 16 22 24 32 48 128; do
+ install -d "$pkgdir"/usr/share/icons/hicolor/${size}x${size}/apps
+ convert -resize $size icons/retext.png "$pkgdir"/usr/share/icons/hicolor/${size}x${size}/apps/retext.png
+ done
+ install -Dm644 icons/retext.svg "$pkgdir"/usr/share/icons/scalable/apps/retext.svg
+
+ # install mime files
+ install -Dm644 "$srcdir"/x-retext-markdown.xml "$pkgdir"/usr/share/mime/packages/x-retext-markdown.xml
+ install -Dm644 "$srcdir"/x-retext-rst.xml "$pkgdir"/usr/share/mime/packages/x-retext-rst.xml
+
+ # install desktop file
+ install -Dm644 "$srcdir"/retext.desktop "$pkgdir"/usr/share/applications/retext.desktop
}