blob: 877a3b52f41d2a1df66fbbd9dec6cbf79737cbb5 (
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
|
# Maintainer: Dmitry Lyashuk <lyashuk.voxx at gmail dot com>
pkgname=doom2df-editor-qt5
pkgver=0.667
pkgrel=1
pkgdesc="Official map editor for Doom 2D: Forever, qt5 version."
arch=(x86_64 i686)
url="https://doom2d.org/"
license=('GPL3')
group=(doom2df-full)
depends=(doom2df-res qt5-base qt5-imageformats qt5-networkauth qt5-x11extras libjpeg-turbo libpng gdk-pixbuf2 libxcb libx11 libgl)
makedepends=(git fpc lazarus lazarus-gtk2 qt5pas)
optdepends=('doom2df-bin: for testing/playing')
provides=(doom2df-editor)
conflicts=(doom2df-editor-gtk2 doom2df-editor-qt4)
source=(
'git://repo.or.cz/d2df-editor.git'
'doom2df-editor.desktop'
'doom2df-editor.png'
'Doom2DF_E'
)
md5sums=(
'SKIP'
'6e002827b10502fb00feab7d64a021f1'
'1ad21e89200ff2bdcae68935b43f53fd'
'52d00efd565ea0f92eb872d8ec39c23f'
)
options=(
!strip
)
prepare(){
cd "${srcdir}/d2df-editor"
# Create some environment for build
mkdir bin
mkdir tmp
}
build() {
# Export environment variable before building
cd "${srcdir}/d2df-editor/"
export D2DF_BUILD_HASH="$(git rev-parse HEAD)"
cd "src/editor"
lazbuild --ws=qt5 --bm=Debug Editor.lpi
cd ../../bin
cp editor ../../
}
package() {
cd "${srcdir}"
install -Dm755 editor "${pkgdir}"/usr/bin/editor
install -Dm755 Doom2DF_E "${pkgdir}"/usr/bin/Doom2DF_E
install -Dm644 doom2df-editor.desktop "${pkgdir}"/usr/share/applications/doom2df-editor.desktop
install -Dm644 doom2df-editor.png "${pkgdir}"/usr/share/pixmaps/doom2df-editor.png
}
|