mirror of
https://aur.archlinux.org/ocp-git.git
synced 2024-11-21 20:06:27 +00:00
Correct indentation
This commit is contained in:
parent
15c64ddd57
commit
b42e6c5a43
1 changed files with 51 additions and 49 deletions
100
PKGBUILD
100
PKGBUILD
|
@ -36,72 +36,74 @@ makedepends=('alsa-lib'
|
||||||
'libvorbis')
|
'libvorbis')
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd $_pkgbase
|
cd $_pkgbase
|
||||||
echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')"
|
echo "$(git describe --tags | sed 's/^v//; s/-/.r/; s/-g/./')"
|
||||||
}
|
}
|
||||||
|
|
||||||
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-git() {
|
package_ocp-sdl2-git() {
|
||||||
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-git() {
|
package_ocp-git() {
|
||||||
provides=(${_pkgbase}=${pkgver})
|
provides=(${_pkgbase}=${pkgver})
|
||||||
conflicts=('ocp' 'ocp-curses')
|
conflicts=('ocp' 'ocp-curses')
|
||||||
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