summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb8ce247a572e99e6b071c679e480fe692cb4d79 (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: Brian Bidulock <bidulock@openss7.org>
pkgname=xde-panel
cpanname=XDE-Panel
pkgver=0.01.7
pkgrel=4
pkgdesc="PerlPanel wrapper for the X Desktop Environment"
groups=('xde')
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl')
makedepends=('git')
optdepends=('xde-ctools: for XDE provided menus'
	    'xde-menu: for XDE applications menu')
url="https://github.com/bbidulock/xde-panel"
source=("$pkgname::git+https://github.com/bbidulock/xde-panel.git")
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags|sed -e 's,^[a-zA-Z_]*,,;s,-g.*,,;s,-,.,g'
}

build() {
  cd $pkgname
  export -n PERL_MM_OPT PERL5LIB PERL_LOCAL_LIB_ROOT
  PERL_MM_USE_DEFAULT=1 \
  PERL_AUTOINSTALL='--skipdeps' \
  perl Makefile.PL INSTALLDIRS=vendor INSTALLVENDORSCRIPT=/usr/bin
  make
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
  find "$pkgdir" -name '.packlist' -o -name '*.pod' -delete
  rm -fr "$pkgdir"/usr/lib
#  find "$pkgdir" -depth -type d -exec rmdir --ignore-fail-on-non-empty '{}' \;
#  find "$pkgdir" -type d -empty -delete
#  find "$pkgdir" -type d -empty |while read f; do echo "WARNING: $f is empty!"; done
}