Created
February 9, 2023 21:51
-
-
Save maksverver/ebba5f944a5ac17f73774c93ce28943c to your computer and use it in GitHub Desktop.
Golly PKGBUILD without Perl support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Jake <aur@ja-ke.tech> | |
# Contributor: Kyle Sferrazza <kyle.sferrazza@gmail.com> | |
# Contributor: Maks Verver <maksverver@geocities.com> | |
# Contributor: p2k <Patrick.Schneider@uni-ulm.de> | |
# Contributor: nokangaroo <nokangaroo@aon.at> | |
pkgname=golly | |
pkgver=4.2 | |
pkgrel=2 | |
pkgdesc="A simulator for Conway's Game of Life and other cellular automata" | |
arch=('i686' 'x86_64') | |
url="http://golly.sourceforge.net/" | |
license=('GPL') | |
depends=('wxwidgets-gtk3' 'glu' 'sdl2') | |
makedepends=('python3') | |
optdepends=('python3: for Python scripting support') | |
source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}-src.tar.gz" | |
"golly.desktop") | |
sha256sums=('569128a923da64c3ff0062186406e4e51fdff02aeabf1f292983753bd065e95d' | |
'3bc28f142f9f7abb47ce06a1194aecf91ee1286e442f1b59e03fbfd9fcaecea4') | |
build() { | |
cd "${srcdir}/${pkgname}-${pkgver}-src/gui-wx/" | |
cat >local-gtk.mk <<EOF | |
GOLLYDIR=/usr/share/golly | |
CXXFLAGS=${CXXFLAGS} | |
LDFLAGS=${LDFLAGS} | |
EOF | |
make -f makefile-gtk | |
} | |
package() { | |
cd "${srcdir}/${pkgname}-${pkgver}-src/" | |
install -d "${pkgdir}"/usr/bin | |
install bgolly golly "${pkgdir}"/usr/bin/ | |
install -d "${pkgdir}"/usr/share/doc/golly | |
install -m644 docs/License.html docs/ReadMe.html "${pkgdir}"/usr/share/doc/golly/ | |
find Help Patterns Rules Scripts -type f | while read file; do | |
install -D -m644 "${file}" "${pkgdir}/usr/share/golly/${file}" | |
done | |
install -D -m644 "${srcdir}/${pkgname}.desktop" \ | |
"${pkgdir}/usr/share/applications/${pkgname}.desktop" | |
install -D -m644 gui-wx/icons/appicon.xpm \ | |
"${pkgdir}/usr/share/pixmaps/${pkgname}.xpm" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment