blob: 024379d93e319b879d96f0eb96e1cb5d6d29d195 (
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
|
pkgname=gloc-git
pkgver=v1.000.r0.42d2c37
pkgrel=1
pkgdesc="GNU/Linux Overdrive/EMusic Client"
arch=('any')
url="https://github.com/jvolkening/gloc"
license=('GPL3')
depends=('perl-file-homedir' 'perl-gtk3' 'perl-io-socket-ssl' 'perl-html-parser' 'perl-html-tiny' 'perl-xml-simple' 'perl-net-ssleay')
makedepends=('perl-test-pod' 'git')
options=('emptydirs')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('gloc::git+https://github.com/jvolkening/gloc.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/${pkgname%-git}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
/usr/bin/perl Makefile.PL
make
}
check() {
cd "$srcdir/${pkgname%-git}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
make test
}
package() {
cd "$srcdir/${pkgname%-git}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}
|