changeset 17:e9c503d896a6

flappyufo-0.230919-1_add_pkgbuild
author Przemyslaw <prymula76@outlook.com>
date Sat, 24 Feb 2024 17:47:35 +0100
parents 8fa14e28f099
children b5e2aba31fdb
files flappyufo/Makefile.aur flappyufo/PKG/PKGBUILD
diffstat 2 files changed, 41 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/flappyufo/Makefile.aur	Sat Feb 24 17:47:35 2024 +0100
@@ -0,0 +1,18 @@
+# with destiny for AUR
+#prefix=/usr
+all:
+	ant compile
+	ant jar
+	
+clean:
+	ant clean
+    
+install: build/jar/FlappyUfo.jar
+	mkdir -pm 0755 $(DESTDIR)/usr/games
+	mkdir -pm 0755 $(DESTDIR)/usr/share/flappyufo
+	mkdir -pm 0755 $(DESTDIR)/usr/share/applications
+	install -m 0644 build/jar/FlappyUfo.jar $(DESTDIR)/usr/games
+	install -m 0644 res/flappyufo.png $(DESTDIR)/usr/share/flappyufo
+	install -m 0644 flappyufo.desktop $(DESTDIR)/usr/share/applications
+    
+.PHONY: install
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/flappyufo/PKG/PKGBUILD	Sat Feb 24 17:47:35 2024 +0100
@@ -0,0 +1,23 @@
+# Maintainer: Przemyslaw R. Pietraszczyk <prymula76@outlook.com>
+
+pkgname=flappyufo
+pkgver=0.230919
+pkgrel=1
+pkgdesc="Clone Flappy Bird from Android"
+arch=('any')
+url="prymula.ct8.pl"
+license=('GPL3')
+provides=('flappyufo')
+depends=('jdk-openjdk')
+makedepends=('jdk-openjdk' 'ant')
+source=("${pkgname}-${pkgver}-${pkgrel}.tar.gz::file://${pkgname}-${pkgver}-${pkgrel}.tar.gz")
+sha256sums=('2ffdf3a15965776205fa5d37dd44c8e99e3a3a37f6b7e50e80ae90db9384a09b') #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
+}