mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
33 lines
974 B
Bash
33 lines
974 B
Bash
|
|
pkgname=allegro
|
|
pkgver=5.2.3
|
|
pkgrel=1
|
|
pkgdesc="Portable library mainly aimed at video game and multimedia programming."
|
|
arch=('x86_64')
|
|
url="http://alleg.sourceforge.net/"
|
|
license=('ZLIB')
|
|
depends=('alsa-lib' 'flac' 'freetype2' 'glibc' 'glu' 'jack' 'libgl' 'libjpeg' 'libogg' 'libpng' 'libvorbis' 'libx11' 'libxau' 'libxcb' 'libxcursor' 'libxdmcp' 'libxext' 'libxfixes' 'libxpm' 'libxrender' 'libxxf86vm' 'libxxf86dga' 'libxcursor' 'libpng' 'openal'
|
|
'physfs' 'zlib')
|
|
makedepends=('cmake')
|
|
source=("git+https://github.com/liballeg/${pkgname}${pkgver%%.*}#tag=$pkgver.0")
|
|
md5sums=('SKIP')
|
|
|
|
build() {
|
|
cd "${srcdir}"
|
|
mkdir -p build && cd build
|
|
|
|
cmake "${srcdir}/${pkgname}${pkgver%%.*}" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/build"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm644 "${srcdir}/${pkgname}${pkgver%%.*}/LICENSE.txt" \
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|