tio: update to 2.0, port to meson

This commit is contained in:
Biswapriyo Nath
2022-09-11 19:16:48 +05:30
parent a6fba7a752
commit 2890bcc543

View File

@@ -1,33 +1,33 @@
# Maintainer: Alexey Pavlov <Alexpux@gmail.com>
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 <martin.lund@keep-it-simple.com>
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
}