mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Forked from https://git.archlinux.org/svntogit/community.git/tree/trunk?h=packages/elinks&id=607b2e6f84a6a558d0747b636dff7799b5a470c1
|
|
|
|
pkgname=elinks
|
|
pkgver=0.13
|
|
_commit="a3751107033599b835eaafa61177c8d4dda4b7ef"
|
|
pkgrel=5
|
|
pkgdesc="An advanced and well-established feature-rich text mode web browser."
|
|
arch=("x86_64")
|
|
url="http://elinks.or.cz"
|
|
license=('GPL')
|
|
depends=('bzip2' 'expat>=2.0' 'gpm>=1.20.4' 'openssl' 'lua51' 'libidn' 'js185'
|
|
'gc' 'tre' 'desktop-file-utils')
|
|
makedepends=('git')
|
|
source=("git+http://elinks.cz/elinks.git#commit=$_commit")
|
|
md5sums=('SKIP')
|
|
|
|
build() {
|
|
cd elinks
|
|
sed -i 's/Terminal=1/Terminal=true/' "contrib/debian/$pkgname.desktop"
|
|
[ -x configure ] || sh autogen.sh
|
|
./configure --prefix=/usr --mandir=/usr/share/man \
|
|
--sysconfdir=/etc \
|
|
--disable-smb --without-x --enable-cgi \
|
|
--enable-leds --enable-256-colors --enable-html-highlight \
|
|
--with-zlib
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd elinks
|
|
make DESTDIR="$pkgdir" install
|
|
rm -f "$pkgdir/usr/share/locale/locale.alias"
|
|
|
|
install -D -m644 "contrib/debian/$pkgname.desktop" \
|
|
"$pkgdir/usr/share/applications/$pkgname.desktop"
|
|
}
|
|
|