changeset 9:cdadbf30a821

arkanoid-0.7-1_PKG
author prymula <prymula76@outlook.com>
date Sun, 04 Feb 2024 15:47:05 +0100
parents 923377f8ebcb
children 4dc186728822
files arkanoid/DEBIAN/debian.rules arkanoid/DEBIAN/format.sh arkanoid/Makefile.aur arkanoid/PKG/PKGBUILD immposiblerush/PKG/PKGBUILD
diffstat 4 files changed, 76 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/arkanoid/DEBIAN/debian.rules	Sat Feb 03 18:23:04 2024 +0100
+++ b/arkanoid/DEBIAN/debian.rules	Sun Feb 04 15:47:05 2024 +0100
@@ -13,6 +13,7 @@
 	mkdir -pm 0755 debian/arkanoid/usr
 	mkdir -pm 0755 debian/arkanoid/usr/bin
 	mkdir -pm 0755 debian/arkanoid/usr/share
+	mkdir -pm 0755 debian/arkanoid/usr/share/arkanoid
 	mkdir -pm 0755 debian/arkanoid/usr/share/pixmaps
 	mkdir -pm 0755 debian/arkanoid/usr/share/applications
 	cp arkanoid debian/arkanoid/usr/bin
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/arkanoid/Makefile.aur	Sun Feb 04 15:47:05 2024 +0100
@@ -0,0 +1,44 @@
+CPP  = g++
+CC   = gcc
+# WINDRES = windres.exe
+RES  =
+OBJ  = arkanoid.o ball.o $(RES)
+LINKOBJ  = arkanoid.o ball.o $(RES)
+LIBS = `pkg-config --libs sdl2` `pkg-config --libs SDL2_ttf`
+INCS = `pkg-config --cflags sdl2`
+CXXINCS =
+BIN  = arkanoid
+CXXFLAGS = $(CXXINCS)   -g
+CFLAGS = $(INCS)   -g
+RM = rm -f
+prefix=/usr
+
+.PHONY: all all-before all-after clean clean-custom
+
+all: all-before arkanoid all-after
+
+
+clean: clean-custom
+	${RM} $(OBJ) $(BIN)
+
+$(BIN): $(OBJ)
+	$(CC) $(LINKOBJ) -o "arkanoid" $(LIBS)
+
+arkanoid.o: arkanoid.c
+	$(CC) -c arkanoid.c -o arkanoid.o $(CFLAGS) -DLINUX
+
+ball.o: ball.c
+	$(CC) -c ball.c -o ball.o $(CFLAGS) -DLINUX
+
+install:
+	mkdir -pm 0755 $(DESTDIR)$(prefix)/bin
+	mkdir -pm 0755 $(DESTDIR)$(prefix)/share/arkanoid
+	mkdir -pm 0755 $(DESTDIR)$(prefix)/share/pixmaps
+	mkdir -pm 0755 $(DESTDIR)$(prefix)/share/applications
+	install -m 0755 arkanoid $(DESTDIR)$(prefix)/bin
+	install -m 0644 icon/arkanoid.png $(DESTDIR)$(prefix)/share/pixmaps
+	install -m 0644 icon/gumka_arkanoid.bmp $(DESTDIR)$(prefix)/share/pixmaps
+	install -m 0755 arkanoid.desktop $(DESTDIR)$(prefix)/share/applications
+	install -m 0644 SpicyRice.ttf $(DESTDIR)$(prefix)/share/arkanoid
+.PHONY: install
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/arkanoid/PKG/PKGBUILD	Sun Feb 04 15:47:05 2024 +0100
@@ -0,0 +1,23 @@
+# Maintainer: Przemyslaw R. Pietraszczyk <prymula76@outlook.com>
+
+pkgname=arkanoid
+pkgver=0.7
+pkgrel=1
+pkgdesc="80s classics game"
+arch=('x86_64')
+url="prymula.ct8.pl"
+license=('Public Domain')
+provides=('arkanoid')
+depends=('sdl2' 'sdl2_ttf')
+makedepends=('make' 'gcc' 'pkg-config' 'sdl2' 'sdl2_ttf')
+source=("${pkgname}-${pkgver}-${pkgrel}.tar.gz::file://${pkgname}-${pkgver}-${pkgrel}.tar.gz")
+sha256sums=('e3df24892fc4b266c678c0a3e8adc7d8239cdefeb5593b78eb8bd19e119ef3fc') #generate with 'makepkg -g' || sha256sum
+build() {
+	cd "$srcdir/${pkgname}-${pkgver}-${pkgrel}"
+	make -f Makefile.aur
+}
+
+package() {
+	cd "$srcdir/${pkgname}-${pkgver}-${pkgrel}"
+	make -f Makefile.aur DESTDIR="${pkgdir}" install
+}
--- a/immposiblerush/PKG/PKGBUILD	Sat Feb 03 18:23:04 2024 +0100
+++ b/immposiblerush/PKG/PKGBUILD	Sun Feb 04 15:47:05 2024 +0100
@@ -1,21 +1,23 @@
 # Maintainer: Przemyslaw R. Pietraszczyk <prymula76@outlook.com>
+
 pkgname=immposiblerush
 pkgver=0.230919
 pkgrel=0
-pkgdesc="atch the color on the square in such a way that it matches the color of the ball. Control, key 'A' - turn left, key 'D' - turn right."
+pkgdesc="Match the color on the square in such a way that it matches the color of the ball. Control, key 'A' - turn left, key 'D' - turn right."
 arch=('any')
 url="prymula.ct8.pl"
-license=('GPL')
+license=('GPL3')
+provides=('immposiblerush')
 depends=('jdk-openjdk')
 makedepends=('jdk-openjdk' 'ant')
-source=("$pkgname-$pkgver-$pkgrel.tar.gz::file://$pkgname-$pkgver-$pkgrel.tar.gz")
-sha256sums=('3dee0cbe55a1ab66dc7a51c82e314dc8c6809851c3a1027bae5ad6cee6eb25b9') #generate with 'makepkg -g'
+source=("${pkgname}-${pkgver}-${pkgrel}.tar.gz::file://${pkgname}-${pkgver}-${pkgrel}.tar.gz")
+sha256sums=('4035729dde8b7f4c1547558257913391949b8c00c0c87aca5d403adb9c651ddf') #generate with 'makepkg -g' || sha256sum
 build() {
-	cd "$srcdir/$pkgname-$pkgver-$pkgrel"
+	cd "$srcdir/${pkgname}-${pkgver}-${pkgrel}"
 	make -f Makefile.aur
 }
 
 package() {
-	cd "$srcdir/$pkgname-$pkgver-$pkgrel"
+	cd "$srcdir/${pkgname}-${pkgver}-${pkgrel}"
 	make -f Makefile.aur DESTDIR="${pkgdir}" install
 }