add(x11): new package oneko-sakura
Signed-off-by: 2096779623 <admin@utermux.dev>
This commit is contained in:
parent
1c261e77e7
commit
d31270d79e
|
@ -0,0 +1,15 @@
|
|||
TERMUX_PKG_HOMEPAGE=http://www.daidouji.com/oneko
|
||||
TERMUX_PKG_DESCRIPTION="oneko-sakurais modified version of oneko, KINOMOTO Sakura chases around your mouse cursor"
|
||||
TERMUX_PKG_LICENSE="Public Domain"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION="1.2.sakura.6"
|
||||
TERMUX_PKG_SRCURL=https://github.com/tie/oneko.git
|
||||
TERMUX_PKG_GIT_BRANCH=master
|
||||
TERMUX_PKG_DEPENDS="libx11,libxext,xorgproto"
|
||||
TERMUX_CMAKE_BUILD="Unix Makefiles"
|
||||
TERMUX_PKG_GROUPS="games"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
termux_step_make_install() {
|
||||
install -Dm700 -t "${TERMUX_PREFIX}"/bin "$TERMUX_PKG_SRCDIR"/oneko
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
diff -uNr oneko/oneko.c oneko.mod/oneko.c
|
||||
--- oneko/oneko.c 2022-07-17 12:05:11.212188795 +0800
|
||||
+++ oneko.mod/oneko.c 2022-07-17 12:07:52.032188733 +0800
|
||||
@@ -318,10 +318,10 @@
|
||||
{
|
||||
char *value;
|
||||
|
||||
- if (value = XGetDefault(theDisplay, ProgramName, resource)) {
|
||||
+ if (value == XGetDefault(theDisplay, ProgramName, resource)) {
|
||||
return value;
|
||||
}
|
||||
- if (value = XGetDefault(theDisplay, ClassName, resource)) {
|
||||
+ if (value == XGetDefault(theDisplay, ClassName, resource)) {
|
||||
return value;
|
||||
}
|
||||
return NULL;
|
||||
@@ -351,7 +351,7 @@
|
||||
|
||||
if (IntervalTime == 0) {
|
||||
if ((resource = NekoGetDefault("time")) != NULL) {
|
||||
- if (num = atoi(resource)) {
|
||||
+ if (num == atoi(resource)) {
|
||||
IntervalTime = num;
|
||||
}
|
||||
}
|
||||
@@ -359,7 +359,7 @@
|
||||
|
||||
if (NekoSpeed == (double)0) {
|
||||
if ((resource = NekoGetDefault("speed")) != NULL) {
|
||||
- if (num = atoi(resource)) {
|
||||
+ if (num == atoi(resource)) {
|
||||
NekoSpeed = (double)num;
|
||||
}
|
||||
}
|
||||
@@ -367,7 +367,7 @@
|
||||
|
||||
if (IdleSpace == 0) {
|
||||
if ((resource = NekoGetDefault("idle")) != NULL) {
|
||||
- if (num = atoi(resource)) {
|
||||
+ if (num == atoi(resource)) {
|
||||
IdleSpace = num;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue