33 lines
857 B
Bash
33 lines
857 B
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=perl-font-ttf
|
|
pkgver=1.06
|
|
pkgrel=2
|
|
pkgdesc="Font::TTF - Perl module for TrueType font hacking"
|
|
arch=(any)
|
|
url='https://metacpan.org/release/Font-TTF'
|
|
license=(Artistic-2.0)
|
|
depends=(perl-io-string)
|
|
options=(!emptydirs)
|
|
source=(https://cpan.metacpan.org/authors/id/B/BH/BHALLISSY/Font-TTF-$pkgver.tar.gz)
|
|
sha512sums=('2995544511e4cf9b1aa9a900b2272bf63a137fbbb752f2501d66c057b8272f7eb6f84326ed6121ffcbeb210f8f38b9219f59420a5a4b6664ce07aecc758ea029')
|
|
|
|
build() {
|
|
cd Font-TTF-$pkgver
|
|
# Install module in vendor directories.
|
|
PERL_MM_USE_DEFAULT=1 perl 'Makefile.PL' INSTALLDIRS='vendor'
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd Font-TTF-$pkgver
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd Font-TTF-$pkgver
|
|
make install DESTDIR=$pkgdir
|
|
rm -r $pkgdir/usr/lib
|
|
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
|
}
|