mirror of
https://github.com/moparisthebest/arch-ppa
synced 2024-11-21 08:15:01 -05:00
Add few packages
This commit is contained in:
parent
6d3d9c4434
commit
aab7755bcb
6
src/chocolate-doom/.gitignore
vendored
Normal file
6
src/chocolate-doom/.gitignore
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
*.pkg.tar*
|
||||
*.src.tar*
|
||||
*.asc
|
||||
*.gz
|
||||
src
|
||||
pkg
|
27
src/chocolate-doom/0001_fix-bash-completion.patch
Normal file
27
src/chocolate-doom/0001_fix-bash-completion.patch
Normal file
@ -0,0 +1,27 @@
|
||||
diff -ur chocolate-doom-3.0.0.orig/man/bash-completion/Makefile.in chocolate-doom-3.0.0/man/bash-completion/Makefile.in
|
||||
--- chocolate-doom-3.0.0.orig/man/bash-completion/Makefile.in 2017-12-30 13:22:42.000000000 -0800
|
||||
+++ chocolate-doom-3.0.0/man/bash-completion/Makefile.in 2018-01-27 04:59:41.032103406 -0800
|
||||
@@ -519,19 +519,19 @@
|
||||
|
||||
|
||||
@HAVE_PYTHON_TRUE@@PROGRAM_PREFIX@doom: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES)
|
||||
-@HAVE_PYTHON_TRUE@ $(DOCGEN) -g doom -b $(MANDIR)/doom.template \
|
||||
+@HAVE_PYTHON_TRUE@ $(DOCGEN) -g doom -b doom.template \
|
||||
@HAVE_PYTHON_TRUE@ $(top_srcdir)/src $(top_srcdir)/src/doom > $@
|
||||
|
||||
@HAVE_PYTHON_TRUE@@PROGRAM_PREFIX@heretic: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES)
|
||||
-@HAVE_PYTHON_TRUE@ $(DOCGEN) -g heretic -b $(MANDIR)/heretic.template \
|
||||
+@HAVE_PYTHON_TRUE@ $(DOCGEN) -g heretic -b heretic.template \
|
||||
@HAVE_PYTHON_TRUE@ $(top_srcdir)/src $(top_srcdir)/src/heretic > $@
|
||||
|
||||
@HAVE_PYTHON_TRUE@@PROGRAM_PREFIX@hexen: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES)
|
||||
-@HAVE_PYTHON_TRUE@ $(DOCGEN) -g hexen -b $(MANDIR)/hexen.template \
|
||||
+@HAVE_PYTHON_TRUE@ $(DOCGEN) -g hexen -b hexen.template \
|
||||
@HAVE_PYTHON_TRUE@ $(top_srcdir)/src $(top_srcdir)/src/hexen > $@
|
||||
|
||||
@HAVE_PYTHON_TRUE@@PROGRAM_PREFIX@strife: $(top_srcdir)/src $(DOCGEN) $(BASH_COMPLETION_TEMPLATES)
|
||||
-@HAVE_PYTHON_TRUE@ $(DOCGEN) -g strife -b $(MANDIR)/strife.template \
|
||||
+@HAVE_PYTHON_TRUE@ $(DOCGEN) -g strife -b strife.template \
|
||||
@HAVE_PYTHON_TRUE@ $(top_srcdir)/src $(top_srcdir)/src/strife > $@
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
145
src/chocolate-doom/PKGBUILD
Normal file
145
src/chocolate-doom/PKGBUILD
Normal file
@ -0,0 +1,145 @@
|
||||
# Maintainer: Mike Swanson <mikeonthecomputer@gmail.com>
|
||||
|
||||
pkgname=(chocolate-{doom,heretic,hexen,strife,common})
|
||||
pkgbase=${pkgname[0]}
|
||||
pkgdesc="Historically-accurate Doom, Heretic, Hexen, and Strife ports."
|
||||
pkgver=3.0.0
|
||||
pkgrel=2
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://www.chocolate-doom.org/"
|
||||
license=('GPL2')
|
||||
depends=('libpng' 'libsamplerate' 'sdl2_mixer' 'sdl2_net')
|
||||
makedepends=('python')
|
||||
source=(http://chocolate-doom.org/downloads/${pkgver}/${pkgbase}-${pkgver}.tar.gz{,.asc}
|
||||
0001_fix-bash-completion.patch)
|
||||
sha512sums=('41f235c0d84ef21070636ad0610e97898dfd366fae7f9244bd2aebf8974db98dcf55f70bcab2f93589b9bf31dd421db32e8af88e0f8e0a655d2b9f1d4ead2afd'
|
||||
'SKIP'
|
||||
'5da61fcabd332698b3a8934670195d42f9d9db949fd666c3a670c47252af0376cf8cd0e3f2d78c9d6593446d68dab02b3db14b995a9fa8c973859cd2fd8bc3d0')
|
||||
validpgpkeys=('6D2C117E0310664497AA9546F6C2EE9C23354344')
|
||||
|
||||
prepare() {
|
||||
cd "${pkgbase}-${pkgver}"
|
||||
|
||||
for patch in ../*.patch; do
|
||||
if [ ! -f "$patch" ]; then
|
||||
break;
|
||||
else
|
||||
patch -p1 -i "$patch"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${pkgbase}-${pkgver}"
|
||||
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package_chocolate-common() {
|
||||
pkgdesc="Files shared in common with Chocolate Doom-based games."
|
||||
install=chocolate-doom.install
|
||||
|
||||
cd "${pkgbase}-${pkgver}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -dm 755 "${pkgdir}"/usr/share/games/doom
|
||||
|
||||
cd "${pkgdir}"/usr/bin
|
||||
mv chocolate-doom-setup chocolate-setup
|
||||
rm -f chocolate-{doom,heretic,hexen,strife}{,-setup}
|
||||
|
||||
cd "${pkgdir}"/usr/share
|
||||
rm -rf bash-completion doc man/man5
|
||||
rm -rf applications/chocolate-{doom,heretic,hexen,strife}.desktop \
|
||||
applications/screensavers
|
||||
rm -rf appdata
|
||||
cd man/man6
|
||||
rm -f chocolate-{doom,heretic,hexen,strife}{,-setup}.6
|
||||
}
|
||||
|
||||
package_chocolate-doom() {
|
||||
pkgdesc="Doom port accurately reproducing the original DOS EXEs."
|
||||
depends=(${depends[@]} 'chocolate-common')
|
||||
optdepends=('freedm: Free deathmatch game'
|
||||
'freedoom1: Free Ultimate Doom-compatible game (not vanilla compatible, but useful for mods)'
|
||||
'freedoom2: Free Doom II/Final Doom-compatible game (not vanilla compatible, but useful for mods)')
|
||||
|
||||
cd "${pkgbase}-${pkgver}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
cd "${pkgdir}"/usr/bin
|
||||
rm -f chocolate-{heretic,hexen,strife,server} chocolate*setup
|
||||
ln -s chocolate{,-doom}-setup
|
||||
|
||||
cd "${pkgdir}"/usr/share
|
||||
rm -rf doc/chocolate-{heretic,hexen,strife}
|
||||
rm -rf applications/chocolate-{setup,heretic,hexen,strife}.desktop icons
|
||||
rm -f appdata/chocolate-{heretic,hexen,strife}.appdata.xml
|
||||
rm -f bash-completion/completions/chocolate-{heretic,hexen,strife}
|
||||
rm -f man/man?/chocolate-{heretic,hexen,strife,setup,server}* \
|
||||
man/man5/{heretic,hexen,strife}.cfg*
|
||||
}
|
||||
|
||||
package_chocolate-heretic() {
|
||||
pkgdesc="Heretic port accurately reproducing the original DOS EXEs."
|
||||
depends=(${depends[@]} 'chocolate-common')
|
||||
optdepends=('blasphemer: Free Heretic-compatible game')
|
||||
|
||||
cd "${pkgbase}-${pkgver}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
cd "${pkgdir}"/usr/bin
|
||||
rm -f chocolate-{doom,hexen,strife,server} chocolate*setup
|
||||
ln -s chocolate{,-heretic}-setup
|
||||
|
||||
cd "${pkgdir}"/usr/share
|
||||
rm -rf doc/chocolate-{doom,hexen,strife}
|
||||
rm -rf applications/chocolate-{setup,doom,hexen,strife}.desktop \
|
||||
applications/screensavers icons
|
||||
rm -f appdata/chocolate-{doom,hexen,strife}.appdata.xml
|
||||
rm -f bash-completion/completions/chocolate-{doom,hexen,strife}
|
||||
rm -f man/man?/chocolate-{doom,hexen,strife,setup,server}* \
|
||||
man/man5/{default,hexen,strife}.cfg*
|
||||
}
|
||||
|
||||
package_chocolate-hexen() {
|
||||
pkgdesc="Hexen port accurately reproducing the original DOS EXEs."
|
||||
depends=(${depends[@]} 'chocolate-common')
|
||||
|
||||
cd "${pkgbase}-${pkgver}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
cd "${pkgdir}"/usr/bin
|
||||
rm -f chocolate-{doom,heretic,strife,server} chocolate*setup
|
||||
ln -s chocolate{,-hexen}-setup
|
||||
|
||||
cd "${pkgdir}"/usr/share
|
||||
rm -rf doc/chocolate-{doom,heretic,strife}
|
||||
rm -rf applications/chocolate-{setup,doom,heretic,strife}.desktop \
|
||||
applications/screensavers icons
|
||||
rm -f appdata/chocolate-{doom,heretic,strife}.appdata.xml
|
||||
rm -f bash-completion/completions/chocolate-{doom,heretic,strife}
|
||||
rm -f man/man?/chocolate-{doom,heretic,strife,setup,server}* \
|
||||
man/man5/{default,heretic,strife}.cfg*
|
||||
}
|
||||
|
||||
package_chocolate-strife() {
|
||||
pkgdesc="Strife port accurately reproducing the original DOS EXEs."
|
||||
depends=(${depends[@]} 'chocolate-common')
|
||||
|
||||
cd "${pkgbase}-${pkgver}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
cd "${pkgdir}"/usr/bin
|
||||
rm -f chocolate-{doom,heretic,hexen,server} chocolate*setup
|
||||
ln -s chocolate{,-strife}-setup
|
||||
|
||||
cd "${pkgdir}"/usr/share
|
||||
rm -rf doc/chocolate-{doom,heretic,hexen}
|
||||
rm -rf applications/chocolate-{setup,doom,heretic,hexen}.desktop \
|
||||
applications/screensavers icons
|
||||
rm -f appdata/chocolate-{doom,heretic,hexen}.appdata.xml
|
||||
rm -f bash-completion/completions/chocolate-{doom,heretic,hexen}
|
||||
rm -f man/man?/chocolate-{doom,heretic,hexen,setup,server}* \
|
||||
man/man5/{default,heretic,hexen}.cfg*
|
||||
}
|
11
src/chocolate-doom/chocolate-doom.install
Normal file
11
src/chocolate-doom/chocolate-doom.install
Normal file
@ -0,0 +1,11 @@
|
||||
post_install() {
|
||||
cat <<EOF
|
||||
To install game data (*.wad files), there are two main locations for
|
||||
the engine to easily find them:
|
||||
* For all users: /usr/share/games/doom
|
||||
* For a single user: ~/.local/share/games/doom
|
||||
|
||||
Files such as doom2.wad, heretic.wad, hexen.wad, and strife1.wad are
|
||||
appropriate for installation and usage with Chocolate engines.
|
||||
EOF
|
||||
}
|
27
src/ramroot/PKGBUILD
Normal file
27
src/ramroot/PKGBUILD
Normal file
@ -0,0 +1,27 @@
|
||||
# Maintainer: Chris Magyar <c.magyar.ec@gmail.com>
|
||||
pkgname=ramroot
|
||||
pkgver=1.1.8
|
||||
pkgrel=1
|
||||
pkgdesc="Load root filesystem completely to RAM during boot"
|
||||
arch=('any')
|
||||
url="https://github.com/arcmags/$pkgname"
|
||||
license=('GPL')
|
||||
depends=('sudo')
|
||||
conflicts=('liveroot')
|
||||
install=ramroot.install
|
||||
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
|
||||
md5sums=('9412771e7ba0736c37d87f05c28abe24')
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
install -D -m644 ./lib/etc/issue \
|
||||
"$pkgdir/usr/lib/ramroot/etc/issue"
|
||||
install -D -m644 ./lib/hooks/ramroot \
|
||||
"$pkgdir/usr/lib/ramroot/hooks/ramroot"
|
||||
install -D -m644 ./lib/install/ramroot \
|
||||
"$pkgdir/usr/lib/ramroot/install/ramroot"
|
||||
install -D -m755 ./ramroot \
|
||||
"$pkgdir/usr/bin/ramroot"
|
||||
install -D -m644 ./lib/man/ramroot.8 \
|
||||
"$pkgdir/usr/share/man/man8/ramroot.8"
|
||||
}
|
6
src/ramroot/ramroot.install
Normal file
6
src/ramroot/ramroot.install
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# ensure ramroot is fully removed before uninstalling:
|
||||
pre_remove() {
|
||||
/usr/bin/ramroot remove
|
||||
}
|
19
src/rootmp-hook/PKGBUILD
Executable file
19
src/rootmp-hook/PKGBUILD
Executable file
@ -0,0 +1,19 @@
|
||||
# Contributor: jim945 [at] mail . r [u]
|
||||
pkgname=rootmp-hook
|
||||
pkgver=1.8
|
||||
pkgrel=2
|
||||
pkgdesc="Initcpio hook for copyng root files or overlayfs in tmpfs or zram"
|
||||
url="https://github.com/jim945"
|
||||
arch=(any)
|
||||
license=('GPL3')
|
||||
install=${pkgname}.install
|
||||
depends=('util-linux' 'rsync')
|
||||
makedepends=('git')
|
||||
source=(${pkgname%-git}::git+http://github.com/jim945/rootmp-hook.git)
|
||||
|
||||
package() {
|
||||
install -o root -g root -D ${pkgname}/hooks/rootmp ${pkgdir}/usr/lib/initcpio/hooks/rootmp
|
||||
install -o root -g root -D ${pkgname}/install/rootmp ${pkgdir}/usr/lib/initcpio/install/rootmp
|
||||
}
|
||||
|
||||
md5sums=('SKIP')
|
9
src/rootmp-hook/rootmp-hook.install
Executable file
9
src/rootmp-hook/rootmp-hook.install
Executable file
@ -0,0 +1,9 @@
|
||||
post_install()
|
||||
{
|
||||
echo "To use this hook add rootmp in mkinitcio hooks"
|
||||
}
|
||||
|
||||
post_remove()
|
||||
{
|
||||
echo "remember to remove rootmp from your mkinitcpio hooks array if you added it"
|
||||
}
|
@ -32,10 +32,10 @@ build()
|
||||
fi
|
||||
|
||||
msg 'Building libzpaq'
|
||||
$CXX $CXXFLAGS $LDFLAGS -fPIC -O3 -shared -Dunix -DNDEBUG libzpaq.cpp -o libzpaq.so
|
||||
$CXX $CXXFLAGS $LDFLAGS -fPIC -shared -Dunix -DNDEBUG libzpaq.cpp -o libzpaq.so
|
||||
|
||||
msg 'Building zpaq'
|
||||
$CXX ${CXXFLAGS/-flto} ${LDFLAGS/-flto} -O3 -pthread -Dunix -DNDEBUG zpaq.cpp -L. -lzpaq -o zpaq
|
||||
$CXX ${CXXFLAGS/-flto} ${LDFLAGS/-flto} -pthread -Dunix -DNDEBUG zpaq.cpp -L. -lzpaq -o zpaq
|
||||
|
||||
msg 'Building man page'
|
||||
pod2man zpaq.pod zpaq.1
|
||||
|
Loading…
Reference in New Issue
Block a user