Skip to content

Instantly share code, notes, and snippets.

/golly.patch
Created Sep 21, 2013

Embed
What would you like to do?
patch for golly (issue of not being able to generate and install .desktop)
--- PKGBUILD.old 2013-08-29 02:12:07.000000000 +0900
+++ PKGBUILD 2013-09-21 23:14:05.915518550 +0900
@@ -14,6 +14,10 @@
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.gz)
md5sums=('8ac313923494a0374680fd5be705e28b')
+prepare() {
+ gendesk -f --pkgname "$pkgname" --pkgdesc "$pkgdesc"
+}
+
build() {
cd "$srcdir/$pkgname-$pkgver-src"
@@ -23,8 +27,6 @@
--prefix=/usr
make
-
- gendesk -n "$startdir"/PKGBUILD
}
package() {
@@ -32,7 +34,7 @@
make DESTDIR="$pkgdir" install
- install -D -m644 "$pkgname.desktop" \
+ install -D -m644 "../$pkgname.desktop" \
"$pkgdir"/usr/share/applications/"$pkgname.desktop"
install -D -m644 gui-wx/icons/appicon.xpm \
"$pkgdir"/usr/share/pixmaps/"$pkgname.xpm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.