germanium: fix hardcoded path

This commit is contained in:
Yaksh Bariya 2021-12-02 16:25:04 +05:30
parent 41e07e5b2f
commit 302a8cc579
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
2 changed files with 19 additions and 2 deletions

View File

@ -3,14 +3,22 @@ TERMUX_PKG_DESCRIPTION="Generate image from source code"
TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Raven Ravener <ravener.anime@gmail.com>" TERMUX_PKG_MAINTAINER="Raven Ravener <ravener.anime@gmail.com>"
TERMUX_PKG_VERSION=1.2.2 TERMUX_PKG_VERSION=1.2.2
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/matsuyoshi30/germanium/archive/v$TERMUX_PKG_VERSION.tar.gz TERMUX_PKG_SRCURL=https://github.com/matsuyoshi30/germanium/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=859fed54957f46e25b4577b561a810186cc21c1f0dfd99d5226e99764df195d9 TERMUX_PKG_SHA256=859fed54957f46e25b4577b561a810186cc21c1f0dfd99d5226e99764df195d9
TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() { termux_step_post_get_source() {
termux_setup_golang termux_setup_golang
make build export GOPATH=$TERMUX_PKG_SRCDIR/go
go get -d ./cmd/germanium
chmod +w $GOPATH -R
}
termux_step_make() {
export GOPATH=$TERMUX_PKG_SRCDIR/go
go build -o germanium -v ./cmd/germanium
} }
termux_step_make_install() { termux_step_make_install() {

View File

@ -0,0 +1,9 @@
--- ./go/pkg/mod/github.com/matsuyoshi30/go-findfont@v0.0.0-20210813222338-a686fa15f1a5/fontdirs_unix.go 2021-12-02 16:12:51.021607672 +0530
+++ ./go/pkg/mod/github.com/matsuyoshi30/go-findfont@v0.0.0-20210813222338-a686fa15f1a5/fontdirs_unix.go.mod 2021-12-02 16:13:51.851607649 +0530
@@ -32,5 +32,5 @@
}
return paths
}
- return []string{"/usr/local/share/fonts/", "/usr/share/fonts/"}
+ return []string{"@TERMUX_PREFIX@/local/share/fonts/", "@TERMUX_PREFIX@/share/fonts/"}
}