summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorhaawda2018-07-14 14:20:40 +0200
committerhaawda2018-07-14 14:20:40 +0200
commit7bbfba188416fdab9dcd29210bcbe16d1028c777 (patch)
tree5eafef6bbbe54023dd4785e79b91aa8fa2ec6820 /PKGBUILD
parentb124656efaed22cd003b97de7d802c03f8e6308a (diff)
downloadaur-7bbfba188416fdab9dcd29210bcbe16d1028c777.tar.gz
adopted
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 13 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index aa0558986f2..b11e1bcb3b4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
-# Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
-# Co-maintainer: Jan Korte <j.korte@me.com>
+# Contributor: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
+# former Co-maintainer: Jan Korte <j.korte@me.com>
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=retext-git
-pkgver=7.0.0.r33.g5f5fe0c
+pkgver=7.0.0.r100.g5bc778e
pkgrel=1
pkgdesc="A simple editor for Markdown and ReStructuredText markup languages."
arch=('any')
@@ -30,7 +31,7 @@ sha256sums=('SKIP'
'6fef80cccb14813d9cc74810c397a6cd7831d1ca243536759a47c6e8b6cc977a')
pkgver() {
- cd "${srcdir}/${pkgname}"
+ 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)"
@@ -38,26 +39,26 @@ pkgver() {
}
build () {
- cd $srcdir/$pkgname/locale
+ cd $pkgname/locale
lrelease-qt5 *.ts
}
package () {
- cd $srcdir/$pkgname
+ 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
+ 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 -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 -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
+ install -Dm644 "$srcdir"/retext.desktop "$pkgdir"/usr/share/applications/retext.desktop
}