blob: f92d9cc8f0859f5b7473f941f73cbce85e2425ce (
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
|
# Maintainer: Lucki <Lucki at holarse-linuxgaming dot de>
# Contributor: Carl Reinke <mindless2112 gmail com>
pkgname=lix
pkgver=0.9.0
pkgrel=1
conflicts=("${pkgname}-git")
source=(${pkgname}::git+https://github.com/SimonN/LixD.git#tag=v${pkgver})
sha512sums=('SKIP')
prepare()
{
cd "${srcdir}"
# generate .desktop-file
gendesk -n -f --categories "Game"
}
_pkgname=${pkgname}
# template start; name=lix; version=0.1;
pkgdesc="An action-puzzle game inspired by Lemmings"
arch=('i686' 'x86_64')
url="http://www.lixgame.com/"
license=('custom:CC0')
changelog=.CHANGELOG
depends=('allegro')
makedepends=('git' 'gendesk' 'dmd' 'dub')
build()
{
cd "${srcdir}/${_pkgname}"
# force an upgrade of the dependencies to the local folder, without --cache=local they get added to the users home directory
dub upgrade --cache=local
# add local dependencies to search path
dub add-local allegro-*/allegro
dub add-local derelict-enet-*/derelict-enet
dub add-local derelict-util-*/derelict-util
dub add-local enumap-*/enumap
# force FHS compatibility with '-b releaseXDG'
dub build -f -b releaseXDG --cache=local
# remove local dependencies from search path so dub don't find them later again
dub remove-local allegro-*/allegro
dub remove-local derelict-enet-*/derelict-enet
dub remove-local derelict-util-*/derelict-util
dub remove-local enumap-*/enumap
dub clean-caches
}
package()
{
cd "${srcdir}"
install -Dm644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
cd "${_pkgname}"
install -Dm644 "data/images/${_pkgname}_logo.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg"
install -Dm644 "doc/copying.txt" "${pkgdir}/usr/share/licenses/${_pkgname}/COPYING"
install -Dm755 "bin/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
# https://lists.archlinux.org/pipermail/aur-general/2011-November/016777.html
mkdir -p "${pkgdir}/usr/share/${_pkgname}" "${pkgdir}/usr/share/doc/${_pkgname}"
cp -dpr --no-preserve=ownership "doc/." "${pkgdir}/usr/share/doc/${_pkgname}/"
cp -dpr --no-preserve=ownership "data" "images" "levels" "${pkgdir}/usr/share/${_pkgname}"
}
# template end;
|