mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
Add README.md to Linux package (#11859)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
LINUX_DIR = $(PLATFORM_DIR)/linux
|
||||
LINUX_PACKAGE:=koreader-linux-$(LINUX_ARCH_NAME)$(KODEDUG_SUFFIX)-$(VERSION).tar.xz
|
||||
|
||||
GLIBC_VERSION := $(shell ldd --version | sed -n '1s/.* \([0-9.]\+\)$$/\1/p')
|
||||
|
||||
update: all
|
||||
mkdir -pv \
|
||||
$(INSTALL_DIR)/linux/bin \
|
||||
@@ -26,6 +28,12 @@ update: all
|
||||
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
|
||||
|
||||
# add instructions
|
||||
sed -e 's/%%VERSION%%/$(VERSION)/' \
|
||||
-e 's/%%ARCH%%/$(LINUX_ARCH_NAME)/' \
|
||||
-e 's/%%ABI%%/$(GLIBC_VERSION)/' \
|
||||
$(LINUX_DIR)/instructions.txt >$(INSTALL_DIR)/linux/README.md
|
||||
|
||||
# fix permissions
|
||||
chmod -R u=rwX,og=rX $(INSTALL_DIR)/linux
|
||||
XZ_OPT=9 tar -C $(INSTALL_DIR)/linux -cvJf $(LINUX_PACKAGE) .
|
||||
|
||||
@@ -65,7 +65,7 @@ fi
|
||||
mkdir -p tmp-debian/usr
|
||||
chmod 0755 tmp-debian/usr
|
||||
tar -xf "${1}" -C tmp-debian/usr
|
||||
rm -f tmp-debian/usr/koreader.appdata.xml
|
||||
rm -f tmp-debian/usr/koreader.appdata.xml tmp-debian/usr/README.md
|
||||
ARCH="$(echo "${1}" | cut -d '-' -f3)"
|
||||
VERSION="$(cut -f2 -dv "tmp-debian/usr/lib/koreader/git-rev" | cut -f1,2 -d-)"
|
||||
DEB_ARCH="$(uname_to_debian "${ARCH}")"
|
||||
|
||||
17
platform/linux/instructions.txt
Normal file
17
platform/linux/instructions.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
KOReader %%VERSION%% (Linux %%ARCH%%)
|
||||
--------
|
||||
|
||||
## Requires
|
||||
|
||||
- `GLIBC` >= %%ABI%%
|
||||
- `SDL2`
|
||||
|
||||
## Users
|
||||
|
||||
#### You shouldn't use this package unless you know what you're doing. Please use [AppImage](https://github.com/koreader/koreader/wiki/Installation-on-desktop-linux#what-is-an-appimage) instead.
|
||||
|
||||
## Package maintainers
|
||||
|
||||
The script in **`bin/`** expects the rest of the **assets** in **`../lib/koreader`**.
|
||||
|
||||
In any case the aforementioned script should jump to the **assets** dir and call **`./reader.lua`**.
|
||||
Reference in New Issue
Block a user