[arch-commits] Commit in grafx2/trunk (PKGBUILD.new grafx2.install)
Alexander Rødseth
arodseth at archlinux.org
Mon Apr 10 09:32:06 UTC 2017
Date: Monday, April 10, 2017 @ 09:32:05
Author: arodseth
Revision: 221731
Remove obsolete .install file
Also add new PKGBUILD file in preparation for the next release
Added:
grafx2/trunk/PKGBUILD.new
Deleted:
grafx2/trunk/grafx2.install
----------------+
PKGBUILD.new | 41 +++++++++++++++++++++++++++++++++++++++++
grafx2.install | 14 --------------
2 files changed, 41 insertions(+), 14 deletions(-)
Added: PKGBUILD.new
===================================================================
--- PKGBUILD.new (rev 0)
+++ PKGBUILD.new 2017-04-10 09:32:05 UTC (rev 221731)
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 176067 2016-05-21 17:05:53Z arodseth $
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Simon Parzer <simon.parzer at gmail.com>
+
+pkgname=grafx2
+pkgver=2.4
+pkgrel=10
+pkgdesc='Pixelart-oriented painting program'
+arch=('x86_64' 'i686')
+url='https://gitlab.com/GrafX2/grafx2'
+license=('GPL2')
+depends=('lua' 'fontconfig' 'sdl2_image' 'sdl2_ttf')
+makedepends=('gendesk' 'git')
+options=('!emptydirs')
+source=("git+https://gitlab.com/GrafX2/grafX2.git#commit=e60d0179") # sdl2 branch
+sha256sums=('SKIP')
+
+prepare() {
+ ln -sf "grafX2" "$pkgname"
+ gendesk -f -n \
+ --pkgname "$pkgname" \
+ --pkgdesc "$pkgdesc" \
+ --name 'GrafX2' \
+ --genericname 'Drawing program' --exec 'grafx2 %f' \
+ --mimetypes 'image/bmp;image/gif;image/png;image/x-tga;image/tiff' \
+ --categories 'Graphics;2DGraphics;RasterGraphics'
+}
+
+build() {
+ make -C "$pkgname/src"
+}
+
+package() {
+ make -C "$pkgname/src" prefix=/usr DESTDIR="$pkgdir" install
+ install -Dm644 "$pkgname.desktop" \
+ "$pkgdir/usr/share/applications/$pkgname.desktop"
+ install -Dm644 "$pkgname/doc/README.txt" \
+ "$pkgdir/usr/share/doc/$pkgname/readme.txt"
+}
+
+# vim:set ts=2 sw=2 et:
Deleted: grafx2.install
===================================================================
--- grafx2.install 2017-04-10 09:31:56 UTC (rev 221730)
+++ grafx2.install 2017-04-10 09:32:05 UTC (rev 221731)
@@ -1,14 +0,0 @@
-post_upgrade() {
- gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor
- update-desktop-database -q
-}
-
-post_install() {
- post_upgrade
-}
-
-post_remove() {
- post_upgrade
-}
-
-# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list