Date: Tuesday, November 1, 2022 @ 16:15:42
  Author: foutrelis
Revision: 1340162

archrelease: copy trunk to community-staging-x86_64

Added:
  elinks/repos/community-staging-x86_64/
  elinks/repos/community-staging-x86_64/PKGBUILD
    (from rev 1340160, elinks/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: elinks/repos/community-staging-x86_64/PKGBUILD (from rev 1340160, 
elinks/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-11-01 16:15:42 UTC (rev 1340162)
@@ -0,0 +1,41 @@
+# Maintainer: Kyle Keen <[email protected]>
+# Maintainer: Sergej Pupykin <[email protected]>
+# Maintainer: Andrea Scarpino <[email protected]>
+# Contributor: damir <[email protected]>
+# Contributor: Ben <[email protected]>
+
+pkgname=elinks
+pkgver=0.15.1
+pkgrel=2
+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' 'lua' 'libidn'
+        'gc' 'tre' 'zlib')
+source=("elinks-$pkgver.tgz::https://github.com/rkd77/elinks/archive/v$pkgver.tar.gz";)
+md5sums=('5a55aceb06d6cfee0dd0520103a23c3b')
+
+# todo: make it work with a modern 'js' package
+# (upstream has no interest in writing that)
+
+build() {
+  cd elinks-$pkgver
+  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 --with-luapkg=lua54
+  make
+}
+
+package() {
+  cd elinks-$pkgver
+  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"
+}

Reply via email to