diff options
author | Balló György | 2020-06-17 20:42:08 +0000 |
---|---|---|
committer | Balló György | 2020-06-17 20:42:56 +0000 |
commit | f2cd5f218a667b6b3c956a3b36249f5d6b52d275 (patch) | |
tree | e9388cdc8ed09c2dd1cc829f5d902abf08ff3ecf | |
parent | a48af959e9a2f30529bb5ecac8dad5dab3d7d5dc (diff) | |
download | aur-f2cd5f218a667b6b3c956a3b36249f5d6b52d275.tar.gz |
Add some desktop integration stuff
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 49 | ||||
-rw-r--r-- | PrestoPalette.appdata.xml | 23 | ||||
-rw-r--r-- | PrestoPalette.desktop | 8 | ||||
-rw-r--r-- | prestopalette.install | 12 |
5 files changed, 65 insertions, 43 deletions
@@ -1,19 +1,19 @@ pkgbase = prestopalette - pkgdesc = An artist's tool for creating harmonious color palettes + pkgdesc = Tool for artists to create harmonious color palettes pkgver = 0.1.31 pkgrel = 1 url = http://www.prestopalette.com/ - install = prestopalette.install - arch = i686 arch = x86_64 license = MIT - makedepends = clang - makedepends = pngcrush - depends = qt5-base - depends = qt5-multimedia + makedepends = imagemagick depends = hicolor-icon-theme + depends = qt5-multimedia source = https://github.com/PrestoPalette/PrestoPalette/releases/download/0.1.31/prestopalette-0.1.31.tar.gz - md5sums = 8422158211e89fe4fd255c98fb3ebcd8 + source = PrestoPalette.desktop + source = PrestoPalette.appdata.xml + sha256sums = 656a1e7df7fae23dbb823609b9f8d24f8112cc3b6ca780883b6085b650168495 + sha256sums = 3245ec4733f60823b6ce30b84980ad48c33c60baf224024f24f49ff619d7b18a + sha256sums = 999579fd4360a7ece78f1383c9ced7cd4caf8eaf5c4041dd98d44bc09255b50e pkgname = prestopalette @@ -3,34 +3,37 @@ pkgname=prestopalette pkgver=0.1.31 pkgrel=1 -pkgdesc="An artist's tool for creating harmonious color palettes" -arch=('i686' 'x86_64') +pkgdesc="Tool for artists to create harmonious color palettes" +arch=(x86_64) url="http://www.prestopalette.com/" -license=('MIT') -depends=('qt5-base' 'qt5-multimedia' 'hicolor-icon-theme') -makedepends=(clang pngcrush) -install=$pkgname.install -source=(https://github.com/PrestoPalette/PrestoPalette/releases/download/$pkgver/$pkgname-$pkgver.tar.gz) -noextract=() -md5sums=('8422158211e89fe4fd255c98fb3ebcd8') +license=(MIT) +depends=(hicolor-icon-theme qt5-multimedia) +makedepends=(imagemagick) +source=(https://github.com/PrestoPalette/PrestoPalette/releases/download/$pkgver/$pkgname-$pkgver.tar.gz + PrestoPalette.desktop + PrestoPalette.appdata.xml) +sha256sums=('656a1e7df7fae23dbb823609b9f8d24f8112cc3b6ca780883b6085b650168495' + '3245ec4733f60823b6ce30b84980ad48c33c60baf224024f24f49ff619d7b18a' + '999579fd4360a7ece78f1383c9ced7cd4caf8eaf5c4041dd98d44bc09255b50e') build() { - cd "$pkgname-$pkgver" - - qmake-qt5 -config release PrestoPalette.pro - make -} - -check() { - cd "$pkgname-$pkgver" - make -k check + cd $pkgname-$pkgver + convert graphics/favicon.ico +set date:create +set date:modify graphics/favicon.png + qmake PrestoPalette.pro + make } package() { - cd "$pkgname-$pkgver" - - install -D -m755 build/release/PrestoPalette "$pkgdir/usr/bin/$pkgname" + cd $pkgname-$pkgver + install -Dm755 build/release/PrestoPalette "$pkgdir/usr/bin/PrestoPalette" + install -Dm644 ../PrestoPalette.desktop "$pkgdir/usr/share/applications/PrestoPalette.desktop" + install -Dm644 ../PrestoPalette.appdata.xml "$pkgdir/usr/share/metainfo/PrestoPalette.appdata.xml" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - install -D -m644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" + install -Dm644 graphics/favicon-0.png "$pkgdir/usr/share/icons/hicolor/16x16/apps/PrestoPalette.png" + install -Dm644 graphics/favicon-1.png "$pkgdir/usr/share/icons/hicolor/32x32/apps/PrestoPalette.png" + install -Dm644 graphics/favicon-2.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/PrestoPalette.png" + install -Dm644 graphics/favicon-3.png "$pkgdir/usr/share/icons/hicolor/64x64/apps/PrestoPalette.png" + install -Dm644 graphics/favicon-4.png "$pkgdir/usr/share/icons/hicolor/128x128/apps/PrestoPalette.png" + install -Dm644 graphics/favicon-5.png "$pkgdir/usr/share/icons/hicolor/256x256/apps/PrestoPalette.png" } diff --git a/PrestoPalette.appdata.xml b/PrestoPalette.appdata.xml new file mode 100644 index 000000000000..296617e148c9 --- /dev/null +++ b/PrestoPalette.appdata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="windows-1252"?> +<component type="desktop"> + <id>PrestoPalette.desktop</id> + <translation type="gettext">PrestoPalette</translation> + <name>PrestoPalette</name> + <summary>An artist's tool for creating harmonious color palettes</summary> + <description><p>PrestoPalette is an artist's tool for creating harmonious color palettes.</p><p>Create beautiful palettes, factor in lighting, quickly see contrast and more.</p></description> + <metadata_license>CC0-1.0</metadata_license> + <project_license>MIT</project_license> + <url type="bugtracker">https://github.com/PrestoPalette/PrestoPalette/issues</url> + <url type="donation">https://github.com/PrestoPalette/PrestoPalette</url> + <url type="homepage">https://github.com/PrestoPalette/PrestoPalette</url> + <screenshots> + <screenshot type="default"> + <image type="source">https://github.com/PrestoPalette/PrestoPalette-Packaging/blob/master/screenshots/1.png</image> + </screenshot> + <screenshot> + <image type="source">https://github.com/PrestoPalette/PrestoPalette-Packaging/blob/master/screenshots/2.png</image> + </screenshot> + </screenshots> + <launchable type="desktop-id">PrestoPalette.desktop</launchable> + <update_contact>dagostinelli@gmail.com</update_contact> +</component>
\ No newline at end of file diff --git a/PrestoPalette.desktop b/PrestoPalette.desktop new file mode 100644 index 000000000000..b3901688ef6b --- /dev/null +++ b/PrestoPalette.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=PrestoPalette +Comment=An artist's tool for creating harmonious color palettes +Exec=PrestoPalette +Icon=PrestoPalette +Terminal=false +Type=Application +Categories=Graphics diff --git a/prestopalette.install b/prestopalette.install deleted file mode 100644 index b67c3120be0c..000000000000 --- a/prestopalette.install +++ /dev/null @@ -1,12 +0,0 @@ -post_install() { - update-desktop-database -q - xdg-icon-resource forceupdate -} - -post_upgrade() { - post_install -} - -post_remove() { - post_install -} |