mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 22:57:56 +08:00
37 lines
1.0 KiB
Bash
37 lines
1.0 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=perl-term-readkey
|
|
_realname=TermReadKey
|
|
pkgver=2.30.02
|
|
pkgrel=1
|
|
pkgdesc="Provides simple control over terminal driver modes"
|
|
arch=('i686' 'x86_64')
|
|
license=('custom')
|
|
depends=('perl>=5.10.0' 'glibc')
|
|
url="http://search.cpan.org/~stsi/${_realname}/"
|
|
source=(http://search.cpan.org/CPAN/authors/id/S/ST/STSI/${_realname}-$pkgver.tar.gz)
|
|
options=('!emptydirs')
|
|
md5sums=('69b92c8ddca8691c83823c683cd9838a')
|
|
|
|
build()
|
|
{
|
|
cd ${srcdir}/TermReadKey-$pkgver
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
make
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/TermReadKey-$pkgver
|
|
make DESTDIR=${pkgdir} install
|
|
install -d ${pkgdir}/usr/share/licenses/$pkgname/
|
|
head -7 README > ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
|
|
|
|
# remove perllocal.pod and .packlist
|
|
find ${pkgdir} -name perllocal.pod -delete
|
|
find ${pkgdir} -name .packlist -delete
|
|
} |