Add README.md to Linux package (#11859)

reviewable/pr11863/r1
Martín Fernández 4 weeks ago committed by GitHub
parent 59fb906921
commit 36d2e3cf74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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}")"

@ -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`**.
Loading…
Cancel
Save