blob: 710ad253e55903f1c547b5959c0770220402e0f7 (
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
# Maintainer:
# Contributor: GodofGrunts <me@godofgrunts.xyz>
_pkgname="libresprite"
pkgname="$_pkgname-git"
pkgver=1.1.r59.ga678ddf
pkgrel=1
pkgdesc="Animated sprite editor and pixel art tool"
url='https://github.com/LibreSprite/LibreSprite'
license=('GPL-2.0-only')
arch=('x86_64' 'i686')
depends=(
'curl'
'freetype2'
'giflib'
'libarchive'
'libjpeg-turbo'
'libpng'
'libwebp'
'libxcb'
'libxi'
'pixman'
'sdl2'
'sdl2_image'
'tinyxml2'
'zlib'
)
makedepends=(
'cmake'
'git'
'gtest'
'ninja'
)
provides=(
libresprite
)
conflicts=(
aseprite
libresprite
)
_pkgsrc="$_pkgname"
source=(
"$_pkgsrc"::"git+https://github.com/LibreSprite/LibreSprite.git"
'aseprite.clip'::'git+https://github.com/aseprite/clip.git'
'aseprite.flic'::'git+https://github.com/aseprite/flic.git'
'aseprite.simpleini'::'git+https://github.com/aseprite/simpleini.git'
'aseprite.undo'::'git+https://github.com/aseprite/undo.git'
'libresprite.duktape'::'git+https://github.com/libresprite/duktape.git'
)
sha256sums=(
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
)
pkgver() {
cd "$_pkgsrc"
git describe --long --tags --abbrev=7 --exclude='*[a-zA-Z][a-zA-Z]*' \
| sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
prepare() {
cd "$_pkgsrc"
local _submodules=(
'aseprite.clip'::'src/clip'
'aseprite.flic'::'src/flic'
'aseprite.simpleini'::'third_party/simpleini'
'aseprite.undo'::'src/undo'
'libresprite.duktape'::'third_party/duktape'
)
local _module
for _module in "${_submodules[@]}"; do
git submodule init "${_module##*::}"
git submodule set-url "${_module##*::}" "$srcdir/${_module%::*}"
git -c protocol.file.allow=always submodule update "${_module##*::}"
done
}
build() {
local _cmake_options=(
-B build
-S "$_pkgsrc"
-G Ninja
-DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX='/usr'
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "$pkgdir/usr/share/libresprite/data/icons/ase64.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png"
install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/$_pkgname.desktop" << END
[Desktop Entry]
Type=Application
Name=${_pkgname^}
GenericName=Pixel Art Editor
Keywords=aseprite
Comment=$pkgdesc
Exec=$_pkgname
Icon=$_pkgname
Terminal=false
Categories=Graphics;2DGraphics;RasterGraphics;
MimeType=image/bmp;image/gif;image/jpeg;image/png;image/x-pcx;image/x-tga;image/vnd.microsoft.icon;video/x-flic;image/webp;image/x-aseprite;
END
}
|