# HG changeset patch # User Przemyslaw # Date 1708793255 -3600 # Node ID e9c503d896a691f48e4dc441ae638c769b925835 # Parent 8fa14e28f099704a54d80678d62602d22b7e022e flappyufo-0.230919-1_add_pkgbuild diff -r 8fa14e28f099 -r e9c503d896a6 flappyufo/Makefile.aur --- /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 diff -r 8fa14e28f099 -r e9c503d896a6 flappyufo/PKG/PKGBUILD --- /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 + +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 +}