changeset 19:fff7215ba1e8

package for arch
author Przemyslaw <prymula76@outlook.com>
date Sun, 31 Mar 2024 16:10:46 +0200
parents b5e2aba31fdb
children b637ac9c6605
files colorsmemory/DEBIAN/colorsmemory.dsc colorsmemory/DEBIAN/debian.control colorsmemory/DEBIAN/format.sh colorsmemory/Makefile colorsmemory/Makefile.aur colorsmemory/PKG/PKGBUILD colorsmemory/RPM/colorsmemory.spec
diffstat 7 files changed, 71 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/colorsmemory/DEBIAN/colorsmemory.dsc	Sun Mar 31 15:35:26 2024 +0200
+++ b/colorsmemory/DEBIAN/colorsmemory.dsc	Sun Mar 31 16:10:46 2024 +0200
@@ -5,18 +5,18 @@
 Source: colorsmemory
 Binary: colorsmemory
 Architecture: all
-Version: 0.210503-1
+Version: 0.210503-2
 Maintainer: Przemysław R. Pietraszczyk <prymula76@outlook.com>
 Homepage: https://prymula.ct8.pl
-DEBTRANSFORM-TAR: colorsmemory-0.210503-1.tar.gz
+DEBTRANSFORM-TAR: colorsmemory-0.210503-2.tar.gz
  
-Standards-Version: 0.210503-1
+Standards-Version: 0.210503-2
 Build-Depends: debhelper-compat (>= 12), default-jdk, default-jdk-headless, fakeroot, ant
 Package-List:
 colorsmemory deb x11 optional arch=all
 Files:
- b31649bc23b2b7bca9ab70ea3410711a 128820 colorsmemory-0.210503-1.tar.gz
- 29e7e7e60bc81891e3da3871b9eeb549 764 colorsmemory-0.210503-1.debian.tar.xz
+ b31649bc23b2b7bca9ab70ea3410711a 128820 colorsmemory-0.210503-2.tar.gz
+ 29e7e7e60bc81891e3da3871b9eeb549 764 colorsmemory-0.210503-2.debian.tar.xz
 
 -----BEGIN PGP SIGNATURE-----
 
--- a/colorsmemory/DEBIAN/debian.control	Sun Mar 31 15:35:26 2024 +0200
+++ b/colorsmemory/DEBIAN/debian.control	Sun Mar 31 16:10:46 2024 +0200
@@ -3,7 +3,7 @@
 Priority: extra
 Maintainer: Przemysław R. Pietraszczyk
 Build-Depends: debhelper-compat (= 12), default-jdk, default-jdk-headless, fakeroot, ant
-Standards-Version: 0.210503-1
+Standards-Version: 0.210503-2
 Homepage: https://prymula.ct8.pl
 
 
--- a/colorsmemory/DEBIAN/format.sh	Sun Mar 31 15:35:26 2024 +0200
+++ b/colorsmemory/DEBIAN/format.sh	Sun Mar 31 16:10:46 2024 +0200
@@ -1,1 +1,2 @@
+mkdir ./exec
 exec /usr/lib/build/debtransform ./ ./colorsmemory.dsc ./exec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/colorsmemory/Makefile	Sun Mar 31 16:10:46 2024 +0200
@@ -0,0 +1,19 @@
+# Link command:
+#choinka: engin.o
+#	gcc engin.o -o choinka
+    
+# Compilation commands:
+#engin.o: engin.c
+#	gcc -c engin.c -o engin.o
+
+
+prefix=/usr
+    
+install: build/jar/ColorsMemory.jar
+	install -m 0644 build/jar/ColorsMemory.jar $(prefix)/games
+	mkdir -pm 0755 $(prefix)/share/colorsmemory
+	mkdir -pm 0755 $(prefix)/share/colorsmemory/icons
+	install -m 0644 colorsmemory.png $(prefix)/share/colorsmemory/icons
+	install -m 0644 ColorsMemory.desktop /usr/share/applications
+    
+.PHONY: install
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/colorsmemory/Makefile.aur	Sun Mar 31 16:10:46 2024 +0200
@@ -0,0 +1,20 @@
+
+prefix=/usr
+    
+all:
+	ant compile
+	ant jar
+	
+clean:
+	ant clean
+
+install: build/jar/ColorsMemory.jar
+	mkdir -pm 0755 $(DESTDIR)$(prefix)/games
+	mkdir -pm 0755 $(DESTDIR)$(prefix)/share/applications
+	mkdir -pm 0755 $(DESTDIR)$(prefix)/share/colorsmemory
+	mkdir -pm 0755 $(DESTDIR)$(prefix)/share/colorsmemory/icons
+	install -m 0644 build/jar/ColorsMemory.jar $(DESTDIR)$(prefix)/games
+	install -m 0644 colorsmemory.png $(DESTDIR)$(prefix)/share/colorsmemory/icons
+	install -m 0644 ColorsMemory.desktop $(DESTDIR)$(prefix)/share/applications
+    
+.PHONY: install
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/colorsmemory/PKG/PKGBUILD	Sun Mar 31 16:10:46 2024 +0200
@@ -0,0 +1,23 @@
+# Maintainer: Przemyslaw R. Pietraszczyk <prymula76@outlook.com>
+
+pkgname=colorsmemory
+pkgver=0.210503
+pkgrel=2
+pkgdesc="My implementation Memory game"
+arch=('any')
+url="prymula.ct8.pl"
+license=('GPL3')
+provides=('colorsmemory')
+depends=('jdk-openjdk')
+makedepends=('jdk-openjdk' 'ant')
+source=("${pkgname}-${pkgver}-${pkgrel}.tar.gz::file://${pkgname}-${pkgver}-${pkgrel}.tar.gz")
+sha256sums=('169cb0d635a2e231ab9a4f752a4c9e58409b48fe50895459107f7163bdfa3948') #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/colorsmemory/RPM/colorsmemory.spec	Sun Mar 31 15:35:26 2024 +0200
+++ b/colorsmemory/RPM/colorsmemory.spec	Sun Mar 31 16:10:46 2024 +0200
@@ -15,10 +15,10 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
-%define unmangled_version 0.210503-1
+%define unmangled_version 0.210503-2
 Name:           colorsmemory
 Version:		0.210503
-Release:        1
+Release:        2
 Summary:    	My implementation Memory game
 License:        GPL
 URL:            https://prymula.ct8.pl