blob: b05c6924de0937776bf55b182c191f2c8d62e320 (
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
|
# Maintainer: robertfoster
# Contributor: LIN Rs <LinRs[d]users.noreply.github.com>
_pkgname=devilutionX
pkgname=devilutionx
pkgver=1.0.1
pkgrel=2
pkgdesc="Diablo devolved for linux"
arch=('i686' 'x86_64')
url="https://github.com/diasurgical/devilutionX"
license=('custom:unlicense')
depends=('graphite' 'libsodium' 'sdl2_mixer' 'sdl2_ttf')
makedepends=('cmake' 'gcc-libs')
install="$pkgname".install
source=("https://github.com/diasurgical/devilutionX/archive/$pkgver.tar.gz")
prepare() {
cd "$srcdir/${_pkgname}-$pkgver"
if [ ! -d build ]; then
mkdir build
fi
}
build() {
cd "$srcdir/${_pkgname}-$pkgver/build"
cmake .. \
-DPIE=ON \
-DBINARY_RELEASE=ON \
-DTTF_FONT_PATH=\"/usr/share/fonts/truetype/CharisSILB.ttf\" \
-DGIT_TAG="$pkgver"
make INSTALL_ROOT="$pkgdir"
}
package() {
cd "$srcdir/${_pkgname}-$pkgver"
# Install and link binary
install -vDm755 build/"$pkgname" "$pkgdir"/usr/bin/"$pkgname"
# Install font
install -Dm644 Packaging/resources/CharisSILB.ttf \
"$pkgdir/usr/share/fonts/truetype/CharisSILB.ttf"
# Install icons
install -Dm644 Packaging/cpi-gamesh/Devilution.png \
"$pkgdir/usr/share/pixmaps/$pkgname.png"
# Install desktop file
install -Dm664 Packaging/fedora/$pkgname.desktop -t \
"$pkgdir/usr/share/applications"
# Install license
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
# Install font license
install -Dm644 Packaging/resources/LICENSE.CharisSILB.txt -t \
"$pkgdir/usr/share/licenses/$pkgname"
}
md5sums=('bc25aaad76cedf37e0eac9549ba8f408')
|