diff options
author | Moses Narrow | 2022-07-09 19:05:59 -0500 |
---|---|---|
committer | Moses Narrow | 2022-07-09 19:05:59 -0500 |
commit | b5294e318977e66424d5269e178f8f10c509375a (patch) | |
tree | 5a69b96e51491106b834aaac2f2dce85d5df7cf4 | |
download | aur-b5294e318977e66424d5269e178f8f10c509375a.tar.gz |
first commit, add PKGBUILD & .SRCINFO ; add updates.sh & test.sh repo maintenance framework scripts
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 29 | ||||
-rwxr-xr-x | test.sh | 4 | ||||
-rwxr-xr-x | updates.sh | 9 |
4 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..15f86f72979d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,11 @@ +pkgbase = discreet + pkgdesc = Discreet Cryptocurrency Wallet. discreet.net + pkgver = 0.0.1 + pkgrel = 1 + url = https://github.com/DiscreetNetwork/discreet + arch = x86_64 + depends = dotnet-sdk + source = https://github.com/DiscreetNetwork/discreet/archive/refs/heads/master.zip + sha256sums = 1cec76252c3e7944d0c4b6e0009fc01ec6e3b8e01675172a41bde98354e0239c + +pkgname = discreet diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..023f73c77f6c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Moses Narrow <moe_narrow@use.startmail.com> +pkgname=discreet +_pkgname=${pkgname} +_githuborg="DiscreetNetwork" +pkgdesc="Discreet Cryptocurrency Wallet. discreet.net" +pkgver=0.0.1 +pkgrel=1 +arch=('x86_64') +depends=('dotnet-sdk') +_pkgpath="github.com/${_githuborg}/${_pkgname}" +url="https://${_pkgpath}" +source=("${url}/archive/refs/heads/master.zip") +sha256sums=('1cec76252c3e7944d0c4b6e0009fc01ec6e3b8e01675172a41bde98354e0239c') + + +build() { + cd ${srcdir}/Discreet-master/Discreet +dotnet publish --configuration Release --runtime linux-x64 --framework net6.0 --self-contained true +} + +package() { + #create directory trees + _path=${pkgdir}/opt/${_pkgname} + install -dm755 ${pkgdir}/usr/bin + install -dm755 ${_path} + cp -a ${srcdir}/Discreet-master/Discreet/bin/Release/net6.0/linux-x64/* ${_path}/ + ln -rTsf ${_path}/${_pkgname^} ${pkgdir}/usr/bin/${_pkgname} + chmod 755 ${pkgdir}/usr/bin/${i} +} diff --git a/test.sh b/test.sh new file mode 100755 index 000000000000..8abebbef5d9c --- /dev/null +++ b/test.sh @@ -0,0 +1,4 @@ +#!/bin/bash +clear +echo -e "makepkg -fp PKGBUILD" +makepkg -fp PKGBUILD diff --git a/updates.sh b/updates.sh new file mode 100755 index 000000000000..bd0cf215c429 --- /dev/null +++ b/updates.sh @@ -0,0 +1,9 @@ +#!/bin/bash +echo "updating checksums and version for PKGBUILD" +updpkgsums +echo "creating .SRCINFO" +makepkg --printsrcinfo > .SRCINFO +echo "don't forget to increment pkgrel if you edited the PKGBUILD" +echo +echo "git add -f PKGBUILD .SRCINFO updates.sh test.sh" +echo 'git commit -m " "' |