summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJosé Rebelo2020-02-01 22:56:10 +0000
committerJosé Rebelo2020-02-01 23:07:57 +0000
commitd78ab256100d9505368888005891e906bbac334c (patch)
tree9f53ed5037e70b278d2c86c5cd21abbb933b5171 /PKGBUILD
downloadaur-d78ab256100d9505368888005891e906bbac334c.tar.gz
Initial Commit with 1.0.3
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..42869be0b14
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: José Rebelo <joserebelo at outlook dot com>
+
+pkgname=snowflake
+pkgver=1.0.3
+pkgrel=1
+pkgdesc='Graphical SFTP client and terminal emulator with helpful utilities.'
+arch=('any')
+url="https://github.com/subhra74/snowflake"
+license=('GPL3')
+depends=('java-runtime>=11')
+makedepends=('java-environment>=11' 'maven')
+source=(
+ "${pkgname}-${pkgver}.tar.gz::https://github.com/subhra74/snowflake/archive/v${pkgver}.tar.gz"
+ "${pkgname}"
+ "${pkgname}.desktop"
+)
+sha256sums=(
+ '8259cea965e05db73463eab1872ba75e354b53f87dd0b7f35422d6122c1362d4'
+ 'd688b2ac7cbc88a28d02a108ef82fe6a6dbf6ac66c9aa3745f6869408bfa2b3f'
+ '832e38bbf4a7b451b2bf674b294a9bc8299a24a9d7d37b517c1f3fd71ba6f80e'
+)
+
+build() {
+ cd ${pkgname}-${pkgver}
+
+ # Current release has http url
+ sed -i 's#http://jcenter#https://jcenter#' pom.xml
+
+ mvn clean install
+}
+
+package() {
+ install -Dm644 "${pkgname}-${pkgver}/target/${pkgname}.jar" "${pkgdir}/opt/${pkgname}/${pkgname}.jar"
+ install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+ install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+
+ install -Dm644 "${pkgname}-${pkgver}/src/main/resources/snowflake-logo256.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/snowflake.png"
+}