blob: 118ca14f72878cea506d73af4f8a0546f0a650f0 (
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
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: 3ED_0 <krzysztof1987 /at/ gmail.com>
pkgname=perl-gtk4
pkgver=0.001.r6.d3554f1
pkgrel=1
url="https://gitlab.gnome.org/World/Perl/perl-gtk4/"
license=('LGPL')
pkgdesc="Perl interface to the 4.x series of the GTK+ toolkit"
arch=('any')
depends=('gtk4' 'perl-cairo-gobject' 'perl-glib-object-introspection')
makedepends=('perl-dist-zilla' 'perl-dist-zilla-plugin-git')
source=(
${pkgname}::git+https://gitlab.gnome.org/World/Perl/perl-gtk4/
)
sha512sums=('SKIP')
pkgver() {
cd $srcdir/$pkgname
printf "%s.r%s.%s" \
$(perl -MConfig::INI::Reader -e 'print Config::INI::Reader->read_file(q{dist.ini})->{_}->{version}') \
$(git rev-list --count HEAD) \
$(git rev-parse --short=7 HEAD)
}
build() {
cd $srcdir/$pkgname
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
dzil build
}
check() {
cd $srcdir/$pkgname
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
dzil test
}
package() {
cd $srcdir/$pkgname
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
dzil run make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}
|