diff --git a/tio/PKGBUILD b/tio/PKGBUILD index e0311546..249489fc 100644 --- a/tio/PKGBUILD +++ b/tio/PKGBUILD @@ -1,33 +1,33 @@ # Maintainer: Alexey Pavlov pkgname=tio -pkgver=1.32 +pkgver=2.0 pkgrel=1 pkgdesc="A simple TTY terminal I/O application" arch=('i686' 'x86_64') url="https://tio.github.io/" -license=('GPL') -makedepends=('autotools' 'gcc') -source=(https://github.com/tio/tio/releases/download/v${pkgver}/tio-${pkgver}.tar.xz) -sha256sums=('a8f5ed6994cacb96780baa416b19e5a6d7d67e8c162a8ea4fd9eccd64984ae44') -validpgpkeys=('101BAC1C15B216DBE07A3EEA2BDB4A0944FA00B1') # Martin Lund - -prepare() { - cd "${srcdir}/${pkgname}-${pkgver}" - autoreconf -fiv -} +license=('spdx:GPL-2.0-or-later') +depends=('libinih') +makedepends=('gcc' 'pkgconf' 'python' 'meson' 'ninja' 'libinih-devel') +source=(https://github.com/tio/tio/releases/download/v${pkgver}/tio-${pkgver}.tar.xz{,.asc}) +sha256sums=('e5826109773a89b267c3484df71234bc6c45715f735e3fdbee5984768faf5836' + 'SKIP') +validpgpkeys=('101BAC1C15B216DBE07A3EEA2BDB4A0944FA00B1') # Martin Lund build() { - cd "${srcdir}/${pkgname}-${pkgver}" - ./configure \ - --prefix=/usr \ - --sysconfdir=/etc + mkdir "${srcdir}"/build && cd "${srcdir}"/build - make + /usr/bin/meson \ + --wrap-mode=nodownload \ + --auto-features=enabled \ + --buildtype=plain \ + --prefix=/usr \ + "../tio-${pkgver}" + + /usr/bin/meson compile } package() { - cd "${srcdir}/${pkgname}-${pkgver}" - make DESTDIR="${pkgdir}" install - install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING + /usr/bin/meson install -C build --destdir "${pkgdir}" + install -Dm644 tio-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }