Debian Codegraph @

install/linux/pkg/doublecmd-qt5.pkgbuild

raw
1 # Based on AUR doublecmd-qt-svn package
2 # https://aur.archlinux.org/packages/doublecmd-qt-svn
3 #
4 # Maintainer: ValHue <vhuelamo at gmail dot com>
5 # https://github.com/ValHue/AUR-PKGBUILDs
6 #
7 # Contributor: Stanislav GE <ginermail at gmail dot com>
8
9 _pkgname="doublecmd"
10 pkgname=("${_pkgname}-qt5-svn")
11 pkgver=r6754
12 pkgrel=1
13 pkgdesc="Twin-panel (commander-style) file manager (Qt5)"
14 url="https://doublecmd.sourceforge.io"
15 arch=('i686' 'x86_64')
16 license=('GPL2')
17 depends=('qt5pas')
18 install="${_pkgname}-svn.install"
19 makedepends=('lazarus' 'fpc' 'subversion')
20 optdepends=(
21 'lua51: scripting'
22 'p7zip: support for 7zip archives'
23 'libunrar: support for rar archives'
24 )
25 options=('!strip')
26 provides=(${_pkgname}-qt5)
27 conflicts=('doublecmd-qt5' 'doublecmd-qt' 'doublecmd-qt-svn' 'doublecmd-gtk2' 'doublecmd-gtk2-svn' 'doublecmd-gtk2-alpha-bin')
28
29 pkgver() {
30 cd "${srcdir}"
31 local ver="$(cat revision.txt)"
32 printf "r%s" "${ver//[[:alpha:]]}"
33 }
34
35 prepare() {
36 cd "${srcdir}"
37 sed -e 's/LIB_SUFFIX=.*/LIB_SUFFIX=/g' -i install/linux/install.sh
38 }
39
40 build() {
41 msg 'Build Qt5'
42 cd "${srcdir}"
43 ./build.sh release qt5
44 }
45
46 package() {
47 cd "${srcdir}"
48 install/linux/install.sh --install-prefix="${pkgdir}"
49 }
50
51 # vim:set ts=4 sw=2 ft=sh et: