Initial commit with heading and form navigation keys added.
This commit is contained in:
89
PKGBUILD
89
PKGBUILD
@@ -1,89 +0,0 @@
|
||||
# Maintainer: Storm Dragon <stormdragon2976@gmail.com>
|
||||
# w3m with screen reader navigation enhancements
|
||||
|
||||
pkgname=w3m-git
|
||||
pkgver=0.5.3.r1
|
||||
pkgrel=1
|
||||
pkgdesc="Text-based Web browser, with screen reader navigation support"
|
||||
arch=('x86_64' 'i686' 'armv7h' 'aarch64')
|
||||
url="https://git.stormux.org/storm/w3m"
|
||||
license=('custom')
|
||||
depends=('openssl' 'gc' 'gpm' 'ncurses')
|
||||
makedepends=('git' 'imlib2')
|
||||
optdepends=('imlib2: for graphics support'
|
||||
'xdg-utils: for automatic browser launching')
|
||||
provides=('w3m')
|
||||
conflicts=('w3m')
|
||||
backup=('etc/w3m/config')
|
||||
source=("git+ssh://gitea@git.stormux.org/storm/w3m")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd w3m
|
||||
printf "0.5.3.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd w3m
|
||||
|
||||
# Remove any existing configure script to force regeneration
|
||||
[ -f configure ] && rm configure
|
||||
}
|
||||
|
||||
build() {
|
||||
cd w3m
|
||||
|
||||
# Generate configure script if it doesn't exist
|
||||
if [ ! -f configure ]; then
|
||||
if [ -f configure.ac ]; then
|
||||
autoreconf -fiv
|
||||
else
|
||||
echo "Error: No configure script or configure.ac found"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libexecdir=/usr/lib \
|
||||
--enable-image=x11,fb \
|
||||
--with-imagelib=imlib2 \
|
||||
--enable-color \
|
||||
--enable-ansi-color \
|
||||
--enable-mouse \
|
||||
--enable-gpm \
|
||||
--enable-menu \
|
||||
--enable-cookie \
|
||||
--enable-ssl \
|
||||
--enable-ssl-verify \
|
||||
--enable-external-uri-loader \
|
||||
--enable-w3mmailer \
|
||||
--enable-nntp \
|
||||
--enable-gopher \
|
||||
--enable-ipv6 \
|
||||
--enable-alarm \
|
||||
--enable-mark \
|
||||
--with-gc \
|
||||
--with-ssl=openssl \
|
||||
--with-termlib=ncurses
|
||||
|
||||
# Build with warnings suppressed for modern GCC compatibility
|
||||
make WARNINGS="-Wall -Wnull-dereference -Wno-incompatible-pointer-types -Wno-pointer-sign"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd w3m
|
||||
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
# Install license
|
||||
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||
|
||||
# Install documentation
|
||||
install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
|
||||
install -Dm644 CLAUDE.md "$pkgdir/usr/share/doc/$pkgname/CLAUDE.md"
|
||||
|
||||
# Install config files
|
||||
install -Dm644 doc/keymap.default "$pkgdir/etc/w3m/keymap"
|
||||
install -Dm644 doc/menu.default "$pkgdir/etc/w3m/menu"
|
||||
}
|
Reference in New Issue
Block a user