Created
February 5, 2012 21:32
-
-
Save medigeek/1748035 to your computer and use it in GitHub Desktop.
lingua: Makefile (quilt patch)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: Savvas Radevic <[email protected]> | |
Description: Fix Makefile: | |
* Change main installation path to /usr/share/java/lingua | |
* mkdir /usr/bin | |
* Remove $(DESTDIR) from /usr/bin/lingua contents | |
Index: lingua-0.0.4/Makefile | |
=================================================================== | |
--- lingua-0.0.4.orig/Makefile 2012-02-07 21:10:49.000000000 +0100 | |
+++ lingua-0.0.4/Makefile 2012-02-07 21:10:50.000000000 +0100 | |
@@ -32,22 +32,23 @@ | |
rm -rf dist build | |
uninstall: | |
- rm -rf $(DESTDIR)/usr/local/lingua | |
+ rm -rf $(DESTDIR)/usr/share/java/lingua | |
rm -rf $(DESTDIR)/usr/share/doc/lingua | |
rm $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/lingua.svg | |
rm $(DESTDIR)/usr/share/applications/lingua.desktop | |
rm $(DESTDIR)/usr/bin/lingua | |
install: | |
- mkdir -p $(DESTDIR)/usr/local/lingua | |
+ mkdir -p $(DESTDIR)/usr/share/java/lingua | |
mkdir -p $(DESTDIR)/usr/share/gtksourceview-3.0/language-specs | |
mkdir -p $(DESTDIR)/usr/share/gtksourceview-3.0/styles | |
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps | |
mkdir -p $(DESTDIR)/usr/share/applications | |
mkdir -p $(DESTDIR)/usr/share/doc/lingua | |
- cp dist/lingua.jar $(DESTDIR)/usr/local/lingua/lingua.jar | |
- cp misc/source_printer.py $(DESTDIR)/usr/local/lingua/source_printer.py | |
- cp -R dist/lib $(DESTDIR)/usr/local/lingua | |
+ mkdir -p $(DESTDIR)/usr/bin | |
+ cp dist/lingua.jar $(DESTDIR)/usr/share/java/lingua/lingua.jar | |
+ cp misc/source_printer.py $(DESTDIR)/usr/share/java/lingua/source_printer.py | |
+ cp -R dist/lib $(DESTDIR)/usr/share/java/lingua | |
cp -R help $(DESTDIR)/usr/share/doc/lingua | |
cp misc/lingua-icon.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/lingua.svg | |
cp sourceview-files/glossa.lang $(DESTDIR)/usr/share/gtksourceview-3.0/language-specs/glossa.lang | |
@@ -56,5 +57,5 @@ | |
chmod ugo+x $(DESTDIR)/usr/share/applications/lingua.desktop | |
touch $(DESTDIR)/usr/bin/lingua | |
echo "#!/bin/sh" >> $(DESTDIR)/usr/bin/lingua | |
- echo "java -jar $(DESTDIR)/usr/local/lingua/lingua.jar" >> $(DESTDIR)/usr/bin/lingua | |
+ echo "java -jar /usr/share/java/lingua/lingua.jar" >> $(DESTDIR)/usr/bin/lingua | |
chmod ugo+x $(DESTDIR)/usr/bin/lingua |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment