blob: d7cfe7278e6387bc23a6c5bf7e12255f9709d2b5 (
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
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Eduard Wirch <wirch.eduard@gmail.com>
pkgname=deepgit-preview
pkgver=3.rc.2
pkgrel=1
pkgdesc="A tool to investigate the history of source code. This is preview software intended to provide you with an opportunity to test-drive new builds of the next DeepGit release."
arch=('any')
url="http://www.syntevo.com/deepgit/preview"
license=('custom')
depends=(
'java-environment>=8'
'hicolor-icon-theme'
'bash'
)
conflicts=('deepgit')
source=(
"http://www.syntevo.com/static/smart/download/deepgit/deepgit-linux-${pkgver//./-}.tar.gz"
"deepgit.desktop"
"deepgit.sh.patch"
)
sha1sums=('c7897c0fef20570014958fb74aba1f894922dbb3'
'8ab2e36b3cb2e6f7b5af70a4ddbe2e9d307d3988'
'01b2845c29b507d011ac251625a746b7bd03b11f')
prepare() {
patch -uN "$srcdir/deepgit/bin/deepgit.sh" "$srcdir/deepgit.sh.patch"
}
package() {
cd $srcdir/deepgit
# Executable
install -T -Dm 755 bin/deepgit.sh "$pkgdir/usr/bin/deepgit"
# Runtime
install -m 644 -Dt "$pkgdir/usr/share/java/$pkgname/lib/" lib/*
# Settings
install -Dt "$pkgdir/etc/$pkgname/" bin/deepgit.vmoptions
# Copy license
install -Dt "$pkgdir/usr/share/licenses/$pkgname/" license.html
install -Dt "$pkgdir/usr/share/licenses/$pkgname/" licenses/*
# Desktop file
install -Dm 644 -t "$pkgdir/usr/share/applications/" "$srcdir/deepgit.desktop"
# Copy other stuff to /usr/share/$pkgname/
install -m 644 -Dt "$pkgdir/usr/share/$pkgname" changelog.txt known-issues.txt readme-linux.txt
# Install some icons
cd "$srcdir/deepgit/bin"
for size in 32 48 64 128 256
do
install -Dm 644 -T deepgit-$size.png "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/deepgit.png"
done
}
|