summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 532f8d7507d21807e77209afcc697b76f770f566 (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
33
34
35
# Mantainer: 3ED <krzysztof1987 at gmail dot com>
#
pkgname=perl-x11-aosd
_lastauthor=J/JR/JRED
_pkgname=X11-Aosd
pkgver=0.03
pkgrel=9
pkgdesc="libaosd binding for Cairo powered on screen display"
arch=('i686' 'x86_64')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('libaosd' 'gtk2-perl' 'perl-extutils-depends' 'perl-extutils-pkgconfig')
makedepends=('perl-extutils-makemaker')
url="https://metacpan.org/release/${_pkgname}/"
source=(https://cpan.metacpan.org/authors/id/${_lastauthor}/${_pkgname}-${pkgver}.tar.gz)
sha256sums=('7cbf1d75704d5a7104f8fd3c5369a2ed70b73758fd8a2715813366625c902e33')

build() {
  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" \
    PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
    PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
    MODULEBUILDRC=/dev/null

  cd "${srcdir}/${_pkgname}-${pkgver}"
  perl Makefile.PL
  make
}
check() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  make test
}
package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  make install
}