db-move: moved firefox-i18n from [testing] to [extra] (any)
[arch-packages.git] / perl-term-readkey / repos / extra-x86_64 / PKGBUILD
blob4ddc49a4a26894976c88856a82bdfde507f8b45c
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: kevin <kevin@archlinux.org>
3 # Contributor: Wael Nasreddine <gandalf@siemens-mobiles.org>
4 # Contributor: Francois Charette <francois.archlinux.org>
6 pkgname=perl-term-readkey
7 _realname=TermReadKey
8 pkgver=2.38
9 pkgrel=7
10 pkgdesc="Provides simple control over terminal driver modes"
11 arch=('x86_64')
12 license=('custom')
13 depends=('perl' 'glibc')
14 url="https://search.cpan.org/~jstowe/${_realname}/"
15 options=('!emptydirs')
16 source=(https://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/${_realname}-$pkgver.tar.gz)
17 sha512sums=('fb09f013f9f0d8a4397e39f6f3db7a6d023259219af8f76744094e396437a01b19141b3cdb39a158d3b518903fb010088bc37406763bfbeb3fcab810bb0bb157')
19 build() {
20   cd "${srcdir}/TermReadKey-$pkgver"
21   perl Makefile.PL INSTALLDIRS=vendor
22   make
25 check() {
26   cd "${srcdir}/TermReadKey-$pkgver"
27   make test
30 package() {
31   cd "${srcdir}/TermReadKey-$pkgver"
32   make DESTDIR="${pkgdir}" install
33   install -d "${pkgdir}/usr/share/licenses/$pkgname/"
34   head -7 README > "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"