summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b0161f782c264586d4aea02a58809be16e7352c (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
# ContributorMaintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>
# Maintainer:  Stefan Husmann <stefan-husmann@t-online.de>

pkgname=gcstar
_pkgname=GCstar
pkgver=1.7.3
pkgrel=3
pkgdesc="A collection management application"
arch=('any')
url="http://www.gcstar.org"
license=("GPL")
depends=('perl-libwww' 'perl-xml-simple' 'perl-net-snmp' 'perl-xml-parser'
	 'perl-switch' 'perl-xml-libxml' 'perl-sort-naturally' 'perl-http-message'
	 'perl-http-date' 'perl-http-cookies' 'perl-gd' 'perl-date-calc'
	 'perl-lwp-protocol-https' 'perl-archive-zip' 'perl-datetime-format-strptime'
	 'perl-gdgraph' 'perl-mp3-info' 'perl-mp3-tag' 'perl-net-freedb'
	 'perl-ogg-vorbis-header-pureperl' 'hicolor-icon-theme')
optdepends=('perl-image-exiftool:  to retrieve data from a mkv file')
source=(https://gitlab.com/Kerenoc/GCstar/-/archive/v$pkgver/${_pkgname}-v$pkgver.tar.bz2)
sha256sums=('9b5b1f6b37e73b3401030a0816acc6922c9f65e56d94a279b615e40a1fb5915a')

package() {
  cd ${_pkgname}-v$pkgver/$pkgname
  perl ./install --text --prefix="$pkgdir"/usr
  install -D -m644 "$pkgdir"/usr/share/gcstar/icons/gcstar_256x256.png \
                   "$pkgdir"/usr/share/pixmaps/gcstar.png
  install -D -m644 "$pkgdir"/usr/share/gcstar/icons/gcstar_32x32.png \
                   "$pkgdir"/usr/share/pixmaps/gcstar32.png
  cp -R share/applications "$pkgdir"/usr/share
# cleaning up 
  rmdir "$pkgdir"/usr/share/icons/hicolor/scalable/{apps,mimetypes}
  rmdir "$pkgdir"/usr/share/icons/hicolor/scalable/
  rm "$pkgdir"/usr/share/applications/mimeinfo.cache
  rm -rf "$pkgdir"/usr/share/mime
}