summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a3ee4ed650591f0050943e4bb4e1f9ca8ec17bc6 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Maintainer: Muflone http://www.muflone.com/contacts/english/
pkgname=vvv-bin
_pkgname=vvv
pkgver=1.5.0
pkgrel=1
pkgdesc="VVV (Virtual Volumes View) is an application that catalogs the content of removable volumes like CD and DVD disks for off-line searching"
url="http://vvvapp.sourceforge.net/"
arch=('x86_64')
license=('GPL2')
makedepends=('chrpath')
depends=('gtk2' 'glib2' 'libsm' 'hicolor-icon-theme')
source=("https://downloads.sourceforge.net/vvvapp/VVV-${pkgver}-${CARCH}.tar.gz"
        "${_pkgname}.sh"
        "${_pkgname}-16.png"
        "${_pkgname}-32.png"
        "${_pkgname}-48.png"
        "${_pkgname}-256.png"
        "${_pkgname}.desktop")
sha256sums=('18108c18343896aa84cd02b61b5502ce6acf59786ec25d56565d9bacb8326cf2'
            '7e6ef66f99b2b0d52d144127e8e6ec76dc90436a1ca80e89b48eac4cb8105afd'
            'db9b262a273f7ab2f890500b81ee463614937a175d87329706225a10fb6c24b6'
            '401b08ddc2b605d6279785693f0b44c28b1e56132c35e9e6b6ff20446e9213f1'
            '869ac17bd44dcac179846974f8e56d700c90cb949d1189c990cdb37aee247d07'
            '34bdd57883af804ed6db9961e3f10f5935c1f79c8eddb1d29c7374762d4b6d23'
            '5596743f0c4340ebba91713777a7b056ef78eb155bef46513dbbf45de5f13fb2')

prepare() {
  cd "VVV-${pkgver}-${CARCH}"
  # Remove insecure RPATH
  chrpath --delete "firebird/bin/fb_lock_mgr"
  chrpath --delete "firebird/bin/gbak"
  chrpath --delete "firebird/bin/isql"
  chrpath --delete "firebird/intl/fbintl"
  chrpath --delete "firebird/libfbembed.so.2.1.7"
}

package() {
  cd "VVV-${pkgver}-${CARCH}"
  # Install main files
  install -m 755 -d "${pkgdir}/usr/lib/${_pkgname}"
  install -m 644 -t "${pkgdir}/usr/lib/vvv" \
                    firebird.conf readme.txt vvv.htb VVV.fbk vvv-struct-update.fdb
  install -m 755 -t "${pkgdir}/usr/lib/${_pkgname}" \
                    vvv
  # Install launcher script
  install -m 755 -d "${pkgdir}/usr/bin"
  install -m 755 "${srcdir}/${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}"
  # Install language files
  cd languages
  for _file in *
  do
    install -m 755 -d "${pkgdir}/usr/lib/${_pkgname}/languages/${_file}"
    install -m 644 -t "${pkgdir}/usr/lib/${_pkgname}/languages/${_file}" ${_file}/*
  done
  # Install local Firebird engine
  cd ../firebird
  install -m 755 -d "${pkgdir}/usr/lib/${_pkgname}/firebird"
  install -m 644 -t "${pkgdir}/usr/lib/${_pkgname}/firebird" \
                    firebird.msg \
                    security2.fdb
  install -m 755 -t "${pkgdir}/usr/lib/${_pkgname}/firebird" \
                    libfbembed.so.2.1.7 \
                    libib_util.so \
                    libicuuc.so.30.0 \
                    libicudata.so.30.0 \
                    libicui18n.so.30.0
  cd bin
  install -m 755 -d "${pkgdir}/usr/lib/${_pkgname}/firebird/bin"
  install -m 755 -t "${pkgdir}/usr/lib/${_pkgname}/firebird/bin" \
                    fb_lock_mgr \
                    gbak \
                    isql
  cd ../intl
  install -m 755 -d "${pkgdir}/usr/lib/${_pkgname}/firebird/intl"
  install -m 755 -t "${pkgdir}/usr/lib/${_pkgname}/firebird/intl" fbintl
  install -m 644 -t "${pkgdir}/usr/lib/${_pkgname}/firebird/intl" fbintl.conf
  cd "${pkgdir}/usr/lib/${_pkgname}/firebird"
  ln -s libfbembed.so.2.1.7 libfbembed.so.2.1
  ln -s libfbembed.so.2.1.7 libfbembed.so.2
  ln -s libfbembed.so.2.1.7 libfbembed.so
  ln -s libicudata.so.30.0 libicudata.so.30
  ln -s libicudata.so.30.0 libicudata.so
  ln -s libicui18n.so.30.0 libicui18n.so.30
  ln -s libicui18n.so.30.0 libicui18n.so
  ln -s libicuuc.so.30.0 libicuuc.so.30
  ln -s libicuuc.so.30.0 libicuuc.so
  # Install icons
  install -m 755 -d "${pkgdir}/usr/share/icons/hicolor/"
  cd "${pkgdir}/usr/share/icons/hicolor"
  for _size in 16 32 48 256
  do
    install -m 755 -d "${_size}x${_size}/apps"
    install -m 644 -D "${srcdir}/${_pkgname}-${_size}.png" "${_size}x${_size}/apps/${_pkgname}.png"
  done
  # Install desktop file
  install -m 644 -D "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
}