mirror of
https://aur.archlinux.org/ocp.git
synced 2024-11-24 13:16:30 +00:00
Formatting
This commit is contained in:
parent
481a7021ff
commit
61fb2c0723
1 changed files with 74 additions and 72 deletions
146
PKGBUILD
146
PKGBUILD
|
@ -14,89 +14,91 @@ source=(${_pkgbase}::git+https://github.com/mywave82/opencubicplayer.git#tag=v${
|
||||||
sha256sums=('SKIP')
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
optdepends=('libvorbis: Vorbis codec support'
|
optdepends=('libvorbis: Vorbis codec support'
|
||||||
'libmad: MPEG codec support'
|
'libmad: MPEG codec support'
|
||||||
'flac: FLAC codec support'
|
'flac: FLAC codec support'
|
||||||
'libgme: Video game music emulation/playback support')
|
'libgme: Video game music emulation/playback support')
|
||||||
|
|
||||||
makedepends=('alsa-lib'
|
makedepends=('alsa-lib'
|
||||||
'cjson'
|
'cjson'
|
||||||
'desktop-file-utils'
|
'desktop-file-utils'
|
||||||
'freetype2'
|
'freetype2'
|
||||||
'flac'
|
'flac'
|
||||||
'git'
|
'git'
|
||||||
'ncurses'
|
'ncurses'
|
||||||
'sdl2'
|
'sdl2'
|
||||||
'xa'
|
'xa'
|
||||||
'libgme'
|
'libgme'
|
||||||
'libancient'
|
'libancient'
|
||||||
'libdiscid'
|
'libdiscid'
|
||||||
'libmad'
|
'libmad'
|
||||||
'libjpeg-turbo'
|
'libjpeg-turbo'
|
||||||
'libpng'
|
'libpng'
|
||||||
'libvorbis')
|
'libvorbis')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd $_pkgbase
|
cd $_pkgbase
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $_pkgbase
|
cd $_pkgbase
|
||||||
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core cross_compiling=yes\
|
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core cross_compiling=yes\
|
||||||
--without-update-desktop-database\
|
--without-update-desktop-database\
|
||||||
--without-update-mime-database\
|
--without-update-mime-database\
|
||||||
--with-unifont-ttf=/usr/share/fonts/Unifont/Unifont.ttf\
|
--with-unifont-ttf=/usr/share/fonts/Unifont/Unifont.ttf\
|
||||||
--with-unifont-csur-ttf=/usr/share/fonts/Unifont/Unifont_CSUR.ttf\
|
--with-unifont-csur-ttf=/usr/share/fonts/Unifont/Unifont_CSUR.ttf\
|
||||||
--with-unifont-upper-ttf=/usr/share/fonts/Unifont/Unifont_Upper.ttf
|
--with-unifont-upper-ttf=/usr/share/fonts/Unifont/Unifont_Upper.ttf
|
||||||
make DESTDIR="$pkgdir" subdirs ocp ocp.hlp
|
make DESTDIR="$pkgdir" subdirs ocp ocp.hlp
|
||||||
}
|
}
|
||||||
|
|
||||||
package_ocp-sdl2() {
|
package_ocp-sdl2() {
|
||||||
provides=(${_pkgbase}=${pkgver})
|
provides=(${_pkgbase}=${pkgver})
|
||||||
conflicts=('ocp' 'ocp-curses')
|
conflicts=('ocp' 'ocp-curses')
|
||||||
install=${_pkgbase}.install
|
install=${_pkgbase}.install
|
||||||
depends=('alsa-lib'
|
depends=('alsa-lib'
|
||||||
'bzip2'
|
'bzip2'
|
||||||
'cjson'
|
'cjson'
|
||||||
'freetype2'
|
'freetype2'
|
||||||
'hicolor-icon-theme'
|
'hicolor-icon-theme'
|
||||||
'ncurses'
|
'ncurses'
|
||||||
'sdl2'
|
'sdl2'
|
||||||
'shared-mime-info'
|
'shared-mime-info'
|
||||||
'zlib'
|
'zlib'
|
||||||
'libancient'
|
'libancient'
|
||||||
'libdiscid'
|
'libdiscid'
|
||||||
'libjpeg-turbo'
|
'libjpeg-turbo'
|
||||||
'libpng'
|
'libpng'
|
||||||
'ttf-unifont')
|
'ttf-unifont')
|
||||||
cd $_pkgbase
|
cd $_pkgbase
|
||||||
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core cross_compiling=yes\
|
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core cross_compiling=yes\
|
||||||
--without-sdl --without-x11\
|
--without-sdl --without-x11\
|
||||||
--without-update-desktop-database\
|
--without-update-desktop-database\
|
||||||
--without-update-mime-database\
|
--without-update-mime-database\
|
||||||
--with-unifont-ttf=/usr/share/fonts/Unifont/Unifont.ttf\
|
--with-unifont-ttf=/usr/share/fonts/Unifont/Unifont.ttf\
|
||||||
--with-unifont-csur-ttf=/usr/share/fonts/Unifont/Unifont_CSUR.ttf\
|
--with-unifont-csur-ttf=/usr/share/fonts/Unifont/Unifont_CSUR.ttf\
|
||||||
--with-unifont-upper-ttf=/usr/share/fonts/Unifont/Unifont_Upper.ttf
|
--with-unifont-upper-ttf=/usr/share/fonts/Unifont/Unifont_Upper.ttf
|
||||||
make DESTDIR="$pkgdir" libocp.so
|
make DESTDIR="$pkgdir" libocp.so
|
||||||
make DESTDIR="$pkgdir" install
|
make DESTDIR="$pkgdir" install
|
||||||
}
|
}
|
||||||
|
|
||||||
package_ocp() {
|
package_ocp() {
|
||||||
provides=(${_pkgbase}=${pkgver})
|
provides=(${_pkgbase}=${pkgver})
|
||||||
conflicts=('ocp-curses' 'ocp-sdl2')
|
conflicts=('ocp-curses' 'ocp-sdl2')
|
||||||
depends=('alsa-lib'
|
depends=('alsa-lib'
|
||||||
'bzip2'
|
'bzip2'
|
||||||
'cjson'
|
'cjson'
|
||||||
'ncurses'
|
'ncurses'
|
||||||
'zlib'
|
'zlib'
|
||||||
'libancient'
|
'libancient'
|
||||||
'libdiscid')
|
'libdiscid')
|
||||||
cd $_pkgbase
|
cd $_pkgbase
|
||||||
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core\
|
./configure --prefix=/usr --sysconfdir=/etc --with-builtin=core\
|
||||||
--without-x11 --without-sdl --without-sdl2\
|
--without-x11 --without-sdl --without-sdl2\
|
||||||
--without-update-desktop-database\
|
--without-update-desktop-database\
|
||||||
--without-update-mime-database
|
--without-update-mime-database
|
||||||
make DESTDIR="$pkgdir" libocp.so
|
make DESTDIR="$pkgdir" libocp.so
|
||||||
make DESTDIR="$pkgdir" install
|
make DESTDIR="$pkgdir" install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# vim:set ts=4 sw=4 et:1
|
||||||
|
|
Loading…
Reference in a new issue