Date: Monday, January 5, 2015 @ 09:45:40 Author: arodseth Revision: 125386
Added Acme desktop icon Added: plan9port/trunk/acme.desktop plan9port/trunk/acme.png plan9port/trunk/acme.sh Modified: plan9port/trunk/PKGBUILD --------------+ PKGBUILD | 23 ++++++++++++++++++++--- acme.desktop | 11 +++++++++++ acme.png | 1 + acme.sh | 3 +++ 4 files changed, 35 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-01-05 04:36:49 UTC (rev 125385) +++ PKGBUILD 2015-01-05 08:45:40 UTC (rev 125386) @@ -6,21 +6,32 @@ pkgname=plan9port pkgver=20140306 -pkgrel=1 +pkgrel=2 pkgdesc='Port of many programs from Plan 9 to Unix-like operating systems' arch=('x86_64' 'i686') url='http://swtch.com/plan9port/' license=('custom') depends=('xorg-server' 'libxt' 'libxext' 'fuse') +makedepends=('gendesk') optdepends=('python2: for the codereview script') provides=('plan9') install='plan9.install' options=('!zipman' 'staticlibs') source=("http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tgz" - 'plan9.sh') + 'plan9.sh' 'acme.png' 'acme.desktop' 'acme.sh') sha256sums=('cbb826cde693abdaa2051c49e7ebf75119bf2a4791fe3b3229f1ac36a408eaeb' - '8768c080a8ceb0a52a3f866bd8ffc4b26f9deb97c6877ceea78ec0b316325a6b') + '8768c080a8ceb0a52a3f866bd8ffc4b26f9deb97c6877ceea78ec0b316325a6b' + 'b9046c4b7ed5e8e22bf3ea669d65ff681e616663b9743909a225884ac6fb261b' + '57fdddb70ba969ff4aa2f6c5b68dec02abe937a69044fe00006726e1900d5ffe' + 'fa6d13acba9db07b5b394ffe828548efa532ff8cc8e1d321b65ae6fc65e1f444') + +prepare() { + # Generate a desktop shortcut for the Acme editor + gendesk -f --pkgname acme --name Acme --genericname Editor \ + --comment 'Editor from Plan9' --categories 'Application;Development;TextEditor' +} + package() { cd "$pkgname" @@ -67,6 +78,12 @@ # Once more grep --null -l -r "$pkgdir$PLAN9" | xargs --null sed -i "s!$pkgdir$PLAN9!${PLAN9}!g" || true grep --null -l -r "/build/plan9port/pkg/plan9port/$PLAN9" | xargs --null sed -i "s!/build/plan9port/pkg/plan9port/$PLAN9!${PLAN9}!g" || true + + # Acme + cd "$srcdir" + install -Dm644 acme.desktop "$pkgdir/usr/share/applications/acme.desktop" + install -Dm755 acme.sh "$pkgdir/usr/bin/acme" + install -Dm644 acme.png "$pkgdir/usr/share/pixmaps/acme.png" } # vim:set ts=2 sw=2 et: Added: acme.desktop =================================================================== --- acme.desktop (rev 0) +++ acme.desktop 2015-01-05 08:45:40 UTC (rev 125386) @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Name=Acme +GenericName=Editor +Comment=Editor from Plan9 +Exec=acme +Icon=acme +Terminal=false +StartupNotify=false +Categories=Application;Development;TextEditor; Added: acme.png =================================================================== (Binary files differ) Index: plan9port/trunk/acme.png =================================================================== --- acme.png 2015-01-05 04:36:49 UTC (rev 125385) +++ acme.png 2015-01-05 08:45:40 UTC (rev 125386) Property changes on: plan9port/trunk/acme.png ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +image/png \ No newline at end of property Added: acme.sh =================================================================== --- acme.sh (rev 0) +++ acme.sh 2015-01-05 08:45:40 UTC (rev 125386) @@ -0,0 +1,3 @@ +#!/bin/sh +source /etc/profile.d/plan9.sh +9 acme "$@"