blob: e4c2503113bf577b934816eb98920d9d3acf19fa (
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
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: JokerBoy <jokerboy at punctweb dot ro>
pkgname=ls++-git
pkgver=0.36.87.e17221c
pkgrel=1
epoch=1
pkgdesc='Colorized LS on steroids'
url='https://github.com/trapd00r/ls--/'
arch=('any')
license=('GPL2')
depends=('perl-term-extendedcolor')
makedepends=('git')
backup=('etc/ls++.conf')
options=('!emptydirs')
provides=('ls++')
conflicts=('ls++')
source=(${pkgname}::git+https://github.com/trapd00r/ls--.git)
sha512sums=('SKIP')
pkgver() {
cd ${pkgname}
_lsver=$(grep 'VERSION =' ls++|sed -r 's/\$VERSION = (.+);/\1/'|cut -d\' -f2)
echo "${_lsver}.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd ${pkgname}
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 \
perl Makefile.PL
make
}
package() {
cd ${pkgname}
make PREFIX=/ DESTDIR="${pkgdir}" install
}
# vim: ts=2 sw=2 et:
|