Created
December 31, 2021 14:16
-
-
Save tugh/a94964a6fed67c003888705926e1e971 to your computer and use it in GitHub Desktop.
poly-bin AUR package
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: tugh <tugh AT pm DOT me> | |
_appname=poly | |
pkgname=poly-bin | |
pkgver=0.2.13_alpha | |
pkgrel=1 | |
pkgdesc="A tool used to develop Polylith based architectures in Clojure." | |
arch=(any) | |
url="https://github.com/polyfy/polylith" | |
license=(EPL) | |
provides=(pkgname) | |
conflicts=(pkgname) | |
depends=("java-runtime") | |
source=("${url}/releases/download/v${pkgver//_/-}/${_appname}-${pkgver//_/-}.tar.gz" | |
"poly.sh") | |
sha256sums=("7fcb172f9f3f691662097f3f34ae87b00103a5063ef2941e035351b7cff99b08" | |
"ae3ccb3de81a21550996c0bbaa5b311458a53d611c718dae9209da286ec3c81f") | |
package() { | |
cd "${srcdir}/${_appname}" | |
install -d "${pkgdir}/usr/share/java/${_appname}" | |
install -d "${pkgdir}/usr/bin" | |
install -Dm644 "poly-${pkgver//_/-}.jar" "${pkgdir}/usr/share/java/${_appname}/poly-${pkgver//_/-}.jar" | |
ln -sf "/usr/share/java/${_appname}/poly-${pkgver//_/-}.jar" "${pkgdir}/usr/share/java/${_appname}/poly.jar" | |
install -Dm755 "${srcdir}/poly.sh" "${pkgdir}/usr/bin/poly" | |
} |
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
#!/bin/sh | |
exec /usr/bin/java -jar /usr/share/java/poly/poly.jar "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment