MSYS2-packages/tio/PKGBUILD
2024-01-21 19:56:52 +01:00

35 lines
1.0 KiB
Bash

# Maintainer: Alexey Pavlov <Alexpux@gmail.com>
pkgname=tio
pkgver=2.7
pkgrel=1
pkgdesc="A simple TTY terminal I/O application"
arch=('i686' 'x86_64')
url="https://tio.github.io/"
msys2_repository_url="https://github.com/tio/tio"
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=('bf8fe434848c2c1b6540af0b42503c986068176ddc1a988cf02e521e7de5daa5'
'SKIP')
validpgpkeys=('101BAC1C15B216DBE07A3EEA2BDB4A0944FA00B1') # Martin Lund <martin.lund@keep-it-simple.com>
build() {
mkdir "${srcdir}"/build && cd "${srcdir}"/build
/usr/bin/meson \
--wrap-mode=nodownload \
--auto-features=enabled \
--buildtype=plain \
--prefix=/usr \
"../tio-${pkgver}"
/usr/bin/meson compile
}
package() {
/usr/bin/meson install -C build --destdir "${pkgdir}"
install -Dm644 tio-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}