added internal repo of programs

This commit is contained in:
Cyber Anonymous 2023-02-16 19:47:51 -03:00
parent be333cb29d
commit b7140d8bf5
2 changed files with 28 additions and 7 deletions

View file

@ -1,15 +1,15 @@
FROM proget.makedeb.org/docker/makedeb/makedeb:debian-bullseye
####### Change PROGRAM var by directory of program in this repository for compile and package.
ARG PROGRAM=mindustry
#######
ARG DEBIAN_FRONTEND=noninteractive
# Install needed packages.
#RUN echo 'APT::GET::Assume-Yes "true";' | sudo tee /etc/apt/apt.conf.d/98accept
COPY 98accept /etc/apt/apt.conf.d/
USER makedeb
#WORKDIR /home/makedeb/
EXPOSE 80
RUN sudo apt update; sudo apt upgrade ; sudo apt install git apache2; sudo mkdir -p /var/www/html
RUN sudo apt update; sudo apt upgrade ; sudo apt install git apache2; sudo mkdir -p /var/www/html/$PROGRAM/
WORKDIR /var/www/html
RUN sudo chown makedeb:makedeb -R . ; git clone https://mpr.makedeb.org/freetube-bin.git ; cd freetube-bin ; makedeb -i ; cd /var/www/html; rm index.html ; sudo chown www-data:www-data -R .
#RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
COPY $PROGRAM/* /var/www/html/$PROGRAM/
RUN sudo chown makedeb:makedeb -R . ; cd $PROGRAM ; makedeb -si ; cd /var/www/html; rm index.html ; sudo chown www-data:www-data -R .
CMD ["sudo", "/usr/sbin/apache2ctl", "-D", "FOREGROUND"]
#CMD ["/bin/bash"]

21
mindustry/PKGBUILD Normal file
View file

@ -0,0 +1,21 @@
# Maintainer: Cyber Anonymous <cyberx99@disroot.org>
pkgname=mindustry
pkgver=141.3
pkgrel=1
pkgdesc='The automation tower defense RTS'
arch=('amd64')
depends=('default-jdk')
url=''
source=('https://github.com/Anuken/Mindustry/releases/download/v141.3/Mindustry.jar')
sha256sums=('ac10fb915ad1e2981db6d9b3eaedf11e71433281e6d468c34e880d6e0959c84e')
noextract=('Mindustry.jar')
package() {
mkdir -p "${pkgdir}/usr/share/games/mindustry/" "${pkgdir}/usr/bin/"
mv Mindustry.jar "${pkgdir}/usr/share/games/mindustry/"
echo 'java -jar /usr/share/games/mindustry/Mindustry.jar' > "${pkgdir}/usr/bin/mindustry"
chmod +x "${pkgdir}/usr/bin/mindustry"
}
# vim: set sw=4 expandtab: