summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorÉtienne Deparis2018-01-10 17:03:29 +0100
committerÉtienne Deparis2018-01-10 17:03:29 +0100
commit27050ade26541847675cec7bf819e05a961f641e (patch)
treef1a13594bed6f8709c472b262e24769a9f7170a3
downloadaur-27050ade26541847675cec7bf819e05a961f641e.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD56
2 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..103bfc33f67
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by makepkg 5.0.2
+# Wed Jan 10 16:01:09 UTC 2018
+pkgbase = duniter-desktop-bin
+ pkgdesc = Crypto-currency software to manage libre currency such as Ğ1
+ pkgver = 1.5.9
+ pkgrel = 1
+ url = https://duniter.org/fr/
+ arch = x86_64
+ license = AGPL3
+ provides = duniter-desktop
+ conflicts = duniter-desktop
+ options = !strip
+ source = https://github.com/duniter/duniter/releases/download/v1.5.9/duniter-desktop-v1.5.9-linux-x64.tar.gz
+ sha256sums = c6b423340132ca53f48fdfdb0ec65c54613208d91bb8544e017c785ef79f579d
+
+pkgname = duniter-desktop-bin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7311c13a57b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Étienne Deparis <etienne@depar.is>
+pkgname=duniter-desktop-bin
+_pkgname=duniter-desktop
+pkgver=1.5.9
+pkgrel=1
+pkgdesc="Crypto-currency software to manage libre currency such as Ğ1"
+arch=("x86_64")
+url="https://duniter.org/fr/"
+license=("AGPL3")
+provides=("duniter-desktop")
+conflicts=("duniter-desktop")
+options=('!strip')
+source=("https://github.com/duniter/duniter/releases/download/v$pkgver/${_pkgname}-v$pkgver-linux-x64.tar.gz")
+sha256sums=('c6b423340132ca53f48fdfdb0ec65c54613208d91bb8544e017c785ef79f579d')
+
+prepare() {
+ cd "$srcdir"
+
+ cat >> duniter-desktop.desktop <<EOF
+[Desktop Entry]
+Type=Application
+Name=Duniter Desktop
+Comment=Crypto-currency software to manage libre currency such as Ğ1
+Icon=duniter-desktop
+Exec=/opt/duniter-desktop/nw
+Categories=Network;
+EOF
+
+ chmod 644 credits.html icudtl.dat natives_blob.bin nw_100_percent.pak \
+ nw_200_percent.pak resources.pak snapshot_blob.bin locales/*.pak
+ chmod 755 nw lib lib/*.so locales
+}
+
+package() {
+ cd "$srcdir/"
+
+ install -d -m755 "$pkgdir/usr/share/icons/hicolor/scalable/apps"
+ install -D -m644 images/duniter-logo.svg \
+ "$pkgdir/usr/share/icons/hicolor/scalable/apps/duniter-desktop.svg"
+ # weird utf8 error
+ rm -r images
+
+ install -d -m755 "$pkgdir/usr/share/applications"
+ install -D -m644 duniter-desktop.desktop \
+ "$pkgdir/usr/share/applications/duniter-desktop.desktop"
+ rm duniter-desktop.desktop
+
+ install -d -m755 "$pkgdir/usr/share/licenses/duniter-desktop"
+ install -D -m644 LICENSE \
+ "$pkgdir/usr/share/licenses/duniter-desktop/LICENSE"
+
+ install -d -m755 "$pkgdir/opt"
+ rm duniter-desktop-v1.5.9-linux-x64.tar.gz
+ cd ../
+ cp -R src "$pkgdir/opt/duniter-desktop"
+}