blob: 58d25fa16a93533c02c33adb00c1b8ab84972c8a (
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
|
# Maintainer: Chris Mounce <christophermounce@gmail.com>
pkgname=decker
pkgver=1.53
pkgrel=1
pkgdesc="Multimedia platform for creating interactive documents"
arch=('x86_64')
url="http://beyondloom.com/decker/"
license=('MIT')
makedepends=('xxd')
depends=('glibc' 'hicolor-icon-theme' 'sdl2' 'sdl2_image')
source=("$pkgname-$pkgver.tar.gz::https://github.com/JohnEarnest/Decker/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('b095ef65b5b4a5496a433c15aa57d9d3621c4efe8d54f8e3caaafaacd0cf5dd2')
build() {
cd "$srcdir/Decker-$pkgver"
make -j1 EXTRA_FLAGS='-Wl,-z,now,-z,shstk' lilt decker docs
}
package() {
# Install app itself
cd "$srcdir/Decker-$pkgver"
DESTDIR="$pkgdir" PREFIX="/usr" make install
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
# Install desktop entry and icons
install -Dm644 Decker.desktop "$pkgdir/usr/share/applications/Decker.desktop"
for DIM in 32 64 128 192 256 512; do
install -Dm644 "icon_${DIM}x${DIM}.png" "$pkgdir/usr/share/icons/hicolor/${DIM}x${DIM}/apps/decker.png"
done
# Install MIME type
install -Dm644 x-decker.xml "$pkgdir/usr/share/mime/packages/application-x-decker.xml"
# Install docs
install -Dm644 -t "${pkgdir}/usr/share/doc/decker" docs/*.html
install -Dm644 -t "${pkgdir}/usr/share/doc/decker/images" docs/images/*
}
|