mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 18:14:51 +08:00
54 lines
2.3 KiB
Bash
54 lines
2.3 KiB
Bash
pkgname=chocolate-doom
|
|
pkgver=2.3.0
|
|
pkgrel=1
|
|
pkgdesc="A Doom port reproducing the behavior of the original DOS version."
|
|
arch=('x86_64')
|
|
url="http://www.chocolate-doom.org/"
|
|
license=('GPL2')
|
|
depends=('libsamplerate' 'sdl_mixer' 'sdl_net')
|
|
makedepends=('python3')
|
|
categories=('games')
|
|
install=$pkgname.install
|
|
source=(http://www.chocolate-doom.org/downloads/${pkgver}/chocolate-doom-${pkgver}.tar.gz)
|
|
sha1sums=('c2881f61aa23db23282b196fa8ff4bc15f27e69b')
|
|
|
|
prepare() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
# Change binary dir from /usr/games to /usr/bin
|
|
sed 's|/games|/bin|g' -i src{,/setup}/Makefile.in
|
|
}
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
make DESTDIR=$pkgdir install
|
|
|
|
mv $pkgdir/usr/share/applications/chocolate-doom.desktop $pkgdir/usr/share/applications/chocolate-doom-setup.desktop
|
|
mv $pkgdir/usr/share/applications/chocolate-heretic.desktop $pkgdir/usr/share/applications/chocolate-heretic-setup.desktop
|
|
mv $pkgdir/usr/share/applications/chocolate-hexen.desktop $pkgdir/usr/share/applications/chocolate-hexen-setup.desktop
|
|
mv $pkgdir/usr/share/applications/chocolate-strife.desktop $pkgdir/usr/share/applications/chocolate-strife-setup.desktop
|
|
|
|
sed -i s!Exec=chocolate-doom!Exec=chocolate-doom-setup! $pkgdir/usr/share/applications/chocolate-doom-setup.desktop
|
|
sed -i s!'Name=Chocolate Doom'!'Name=Chocolate Doom Setup'! $pkgdir/usr/share/applications/chocolate-doom-setup.desktop
|
|
|
|
sed -i s!Exec=chocolate-heretic!Exec=chocolate-heretic-setup! $pkgdir/usr/share/applications/chocolate-heretic-setup.desktop
|
|
sed -i s!'Name=Chocolate Heretic'!'Name=Chocolate Heretic Setup'! $pkgdir/usr/share/applications/chocolate-heretic-setup.desktop
|
|
|
|
sed -i s!Exec=chocolate-hexen!Exec=chocolate-hexen-setup! $pkgdir/usr/share/applications/chocolate-hexen-setup.desktop
|
|
sed -i s!'Name=Chocolate Hexen'!'Name=Chocolate Hexen Setup'! $pkgdir/usr/share/applications/chocolate-hexen-setup.desktop
|
|
|
|
sed -i s!Exec=chocolate-strife!Exec=chocolate-strife-setup! $pkgdir/usr/share/applications/chocolate-strife-setup.desktop
|
|
sed -i s!'Name=Chocolate Strife'!'Name=Chocolate Strife Setup'! $pkgdir/usr/share/applications/chocolate-strife-setup.desktop
|
|
|
|
rm $pkgdir/usr/share/applications/chocolate-setup.desktop
|
|
rm -dr $pkgdir/usr/share/applications/screensavers
|
|
}
|