forked from koreader/koreader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add generic Linux package (koreader#9351)
Relates to koreader#9268 Requires koreader/koreader-base#1504 Usage: - `kodev release linux` for native package (same arch as host) - `LINUX_ARCH=arm release linux` for armhf on a x86_64 host. - `LINUX_ARCH=arm64 release linux` for arm64 on a x86_64 host. It produces a `koreader-linux-$ARCH-$VERSION.tar.xz` archive, where $ARCH follows `uname -m` convention {x86_64, armv7l, aarch64} To generate the debian package from the generic archive the following command is required `./platform/linux/do_debian_package.sh path_to.tar.xz`
- Loading branch information
Showing
12 changed files
with
164 additions
and
201 deletions.
There are no files selected for viewing
This file contains 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
Submodule base
updated
3 files
+1 −1 | Makefile | |
+19 −24 | Makefile.defs | |
+3 −0 | thirdparty/turbo/CMakeLists.txt |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
LINUX_DIR = $(PLATFORM_DIR)/linux | ||
LINUX_PACKAGE:=koreader-linux-$(LINUX_ARCH_NAME)$(KODEDUG_SUFFIX)-$(VERSION).tar.xz | ||
|
||
update: all | ||
mkdir -pv \ | ||
$(INSTALL_DIR)/linux/bin \ | ||
$(INSTALL_DIR)/linux/lib \ | ||
$(INSTALL_DIR)/linux/share/pixmaps \ | ||
$(INSTALL_DIR)/linux/share/applications \ | ||
$(INSTALL_DIR)/linux/share/doc/koreader \ | ||
$(INSTALL_DIR)/linux/share/man/man1 | ||
cp -pv resources/koreader.png $(INSTALL_DIR)/linux/share/pixmaps | ||
cp -pv $(LINUX_DIR)/koreader.desktop $(INSTALL_DIR)/linux/share/applications | ||
cp -pv $(LINUX_DIR)/copyright COPYING $(INSTALL_DIR)/linux/share/doc/koreader | ||
cp -pv $(LINUX_DIR)/koreader.sh $(INSTALL_DIR)/linux/bin/koreader | ||
cp -Lr $(INSTALL_DIR)/koreader $(INSTALL_DIR)/linux/lib | ||
gzip -cn9 $(LINUX_DIR)/koreader.1 > $(INSTALL_DIR)/linux/share/man/man1/koreader.1.gz | ||
chmod 644 \ | ||
$(INSTALL_DIR)/linux/share/doc/koreader/copyright \ | ||
$(INSTALL_DIR)/linux/share/man/man1/koreader.1.gz | ||
rm -rf \ | ||
$(INSTALL_DIR)/linux/lib/koreader/{ota,cache,clipboard,screenshots,spec,tools,resources/fonts,resources/icons/src} | ||
|
||
# remove leftovers | ||
find $(INSTALL_DIR)/linux -type f \( -name ".git" -o -name ".gitignore" -o -name "discovery2spore" -o -name "wadl2spore" -o -name "*.txt" -o -name "LICENSE*" -o -name "NOTICE" -o -name "README.md" \) -print0 | xargs -0 rm -rf | ||
find $(INSTALL_DIR)/linux -type d \( -name "test" -o -name ".github" \) -print0 | xargs -0 rm -rf | ||
|
||
# fix permissions | ||
chmod -R u=rwX,og=rX $(INSTALL_DIR)/linux | ||
XZ_OPT=9 tar -C $(INSTALL_DIR)/linux -cvJf $(LINUX_PACKAGE) . | ||
|
||
rm -rf $(INSTALL_DIR)/linux | ||
|
||
.PHONY: update |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.