blob: feae04fa52dd3eed0689f4fbdcb6cbfa469c0af7 (
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
|
# Maintainer: Fredy GarcĂa <frealgagu at gmail dot com>
# Contributor: Alexandre Moine < nobrakal at moine dot org >
# Contributor: Tasos Latsas < tlatsas2000 at gmail dot com >
pkgname=t4kcommon
pkgver=0.1.1
pkgrel=8
pkgdesc="A library of code shared between tuxmath and tuxtype."
arch=("i686" "x86_64")
url="https://github.com/tux4kids/${pkgname}"
license=("GPL")
depends=("librsvg" "sdl_image" "sdl_mixer" "sdl_net" "sdl_pango")
options=(!docs)
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/tux4kids/${pkgname}/archive/upstream/${pkgver}.tar.gz"
"libpng15.patch"
"https://sources.debian.org/data/main/t/t4kcommon/0.1.1-6/debian/patches/916060_bugfix.patch"
"wrapped_lines.patch"
"menu_font_size.patch"
"missing_texts.patch"
"linebreak_gcc14.patch"
)
sha256sums=(
"be4cadbcf2728ed6efb1c71e96c209184a7829b65af3625d9410a29fb2fd775a"
"e2998909bed025becbe52969eb53b40eede05e75285b400cbafac6207cf82c3f"
"1d5bb9a9cf809f26508e4611fb564e050b554036a679ec28b79827785a3f46c8"
"0643e9eada6fdba1a295798ea3d09be71cafbf5af6ba132dd15a4f372d58dcf3"
"73097e6aea0660be08e5b9fe8d66ec0bf466e59924663ee520a556bc7b8c4516"
"a1146b7b1705f95b056ff2c2de5c28b4fad1e953761044358dfa0c08314d236a"
"6f8adf352a19eef08efc51eb4d5659aa6f6458c20d7f4edd2f03cd2e4dc3aa07"
)
prepare() {
cd "${srcdir}/${pkgname}-upstream-${pkgver}"
patch -Np1 -i "${srcdir}/libpng15.patch"
patch -Np1 -i "${srcdir}/916060_bugfix.patch"
patch -Np1 -i "${srcdir}/wrapped_lines.patch"
patch -Np1 -i "${srcdir}/menu_font_size.patch"
patch -Np1 -i "${srcdir}/missing_texts.patch"
patch -Np1 -i "${srcdir}/linebreak_gcc14.patch"
}
build() {
cd "${srcdir}/${pkgname}-upstream-${pkgver}"
./configure \
--prefix=/usr
make
}
package() {
cd "${srcdir}/${pkgname}-upstream-${pkgver}"
make DESTDIR="${pkgdir}" install
}
|