blob: 3b88cfd41aa0fce2376213866c2b7cf39d15ecaf (
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
|
# Maintainer: Xavier Moffett (sapphirus at azorium dot net)
# Contributor: Ossi Saukko <osaukko at gmail dot com>
_pkgbase=ocp
pkgname=('ocp-git' 'ocp-sdl2-git')
pkgver=0.2.109.r11.c1069f5
pkgrel=1
pkgdesc="Open Cubic Player (GIT Version)"
arch=('i686' 'x86_64')
url="https://stian.cubic.org/project-ocp.php"
license=('GPL')
source=(${_pkgbase}::git+https://github.com/mywave82/opencubicplayer.git)
sha256sums=('SKIP')
optdepends=('libvorbis: Vorbis codec support'
'libmad: MPEG codec support'
'flac: FLAC codec support'
'libgme: Video game music emulation/playback support')
makedepends=('alsa-lib'
'cjson'
'desktop-file-utils'
'freetype2'
'flac'
'git'
'ncurses'
'sdl2'
'xa'
'libgme'
'libancient'
'libdiscid'
'libmad'
'libjpeg-turbo'
'libpng'
'libvorbis')
pkgver() {
cd $_pkgbase
echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')"
}
prepare() {
cd $_pkgbase
git submodule init
git submodule update --init --recursive
}
build() {
cd $_pkgbase
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core cross_compiling=yes\
--without-update-desktop-database\
--without-update-mime-database\
--with-unifont-ttf=/usr/share/fonts/Unifont/Unifont.ttf\
--with-unifont-csur-ttf=/usr/share/fonts/Unifont/Unifont_CSUR.ttf\
--with-unifont-upper-ttf=/usr/share/fonts/Unifont/Unifont_Upper.ttf
make DESTDIR="$pkgdir" subdirs ocp ocp.hlp
}
package_ocp-sdl2-git() {
provides=(${_pkgbase}=${pkgver})
conflicts=('ocp' 'ocp-curses')
install=${_pkgbase}.install
depends=('alsa-lib'
'bzip2'
'cjson'
'freetype2'
'hicolor-icon-theme'
'ncurses'
'sdl2'
'shared-mime-info'
'zlib'
'libancient'
'libdiscid'
'libjpeg-turbo'
'libpng'
'ttf-unifont')
cd $_pkgbase
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core cross_compiling=yes\
--without-sdl --without-x11\
--without-update-desktop-database\
--without-update-mime-database\
--with-unifont-ttf=/usr/share/fonts/Unifont/Unifont.ttf\
--with-unifont-csur-ttf=/usr/share/fonts/Unifont/Unifont_CSUR.ttf\
--with-unifont-upper-ttf=/usr/share/fonts/Unifont/Unifont_Upper.ttf
make DESTDIR="$pkgdir" libocp.so
make DESTDIR="$pkgdir" install
}
package_ocp-git() {
provides=(${_pkgbase}=${pkgver})
conflicts=('ocp' 'ocp-curses')
depends=('alsa-lib'
'bzip2'
'cjson'
'ncurses'
'zlib'
'libancient'
'libdiscid')
cd $_pkgbase
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core\
--without-x11 --without-sdl --without-sdl2\
--without-update-desktop-database\
--without-update-mime-database
make DESTDIR="$pkgdir" libocp.so
make DESTDIR="$pkgdir" install
}
# vim:set ts=4 sw=4 et:1
|