summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-x-osd/PKGBUILD
blob: 771079b4941ac1cb36be2b69a9d1e9e4099b95b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: 3ED <krzysztof1987 at gmail dot com>
#
pkgname='perl-x-osd'
_lastauthor="G/GO/GOZER"
_pkgname='X-Osd'
pkgver='0.7'
pkgrel='2'
pkgdesc="Perl extension to the X On Screen Display library (xosd)"
arch=('i686' 'x86_64')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl' 'xosd')
url='http://search.cpan.org/dist/X-Osd/'
source=(http://search.cpan.org/CPAN/authors/id/${_lastauthor}/${_pkgname}-${pkgver}.tar.gz)
sha256sums=('e3bafe11cd51ad9b1e3d1df18516f9bb1ba462f981483b922f2b627b08190391')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  export PERL_MM_USE_DEFAULT=1
  export PERL_AUTOINSTALL='--skipdeps'
  perl Makefile.PL INSTALLDIRS=vendor
  make
}
check() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  make test
}
package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
}