🔒 Repository is read-only – file editing is disabled.

recipes/gui/vala/PAGBUILD.yaml main

48 linii Raw ← Powrót
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
pkgname: vala
pkgver: '0.56.19'
pkgrel: '2'
pkgdesc: 'Programming language which bring news features of languages of programming modern to developers GNOME'
url: 'https://live.gnome.org/Vala'
arch: x86_64
license:
- GPL2

depends: []
makedepends:
- glib
- graphviz
- libxslt
- help2man

source:
- 'https://download.gnome.org/sources/vala/0.56/${pkgname}-${pkgver}.tar.xz'

sha256sums:
- SKIP

build: |
  cd ${pkgname}-${pkgver}

  ./configure --prefix=/usr \
              --disable-valadoc

  make
  make DESTDIR=${PKGDIR} install

  # Obsolete libs
  rm -f ${PKGDIR}/usr/lib/libvala-0.56.la
  rm -f ${PKGDIR}/usr/lib/vala-0.56/libvalaccodegen.la

  install -Dm644 COPYING ${PKGDIR}/usr/share/licenses/${pkgname}/COPYING

package: |
  true

update: |
  local latest lastversion url
  url="https://download.gnome.org/sources/${pkgname}"
  latest="`lynx -read_timeout=20 -dump -listonly -nonumbers \
  $url/?C=N\;O=D|grep [0-9]/$|head -1`"
  lastversion="`lynx -read_timeout=20 -dump -listonly -nonumbers \
  $latest/?C=N\;O=D|grep LATEST|grep [0-9]$|cut -d "-" -f3`"
  echo "$lastversion"