new package: udftools

This commit is contained in:
Tee KOBAYASHI 2022-04-03 11:07:50 +09:00 committed by xtkoba
parent 1b42f596d1
commit 53b5b4c3da
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,19 @@
TERMUX_PKG_HOMEPAGE=https://github.com/pali/udftools
TERMUX_PKG_DESCRIPTION="Linux tools for UDF filesystems and DVD/CD-R(W) drives"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.3
TERMUX_PKG_SRCURL=https://github.com/pali/udftools/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=095e1c8b947849f5f8a1cade23dd3375532bda305a184eb022df96e43c4d6f7e
TERMUX_PKG_DEPENDS="readline"
termux_step_pre_configure() {
autoreconf -fi
}
termux_step_post_configure() {
local f
for f in "$TERMUX_PKG_SRCDIR"/include/*.h; do
ln -sf "${f}" ./include/
done
}

View File

@ -0,0 +1,11 @@
--- a/pktsetup/pktsetup.c
+++ b/pktsetup/pktsetup.c
@@ -191,7 +191,7 @@
dev_t dev;
if ((misc_minor = get_misc_minor()) < 0) {
- if (system("/sbin/modprobe pktcdvd") != 0) {
+ if (system("@TERMUX_PREFIX@/bin/modprobe pktcdvd") != 0) {
fprintf(stderr, "pktsetup: Error: Can't load pktcdvd kernel module\n");
}
misc_minor = get_misc_minor();