diff options
author | Adis Durakovic | 2024-03-11 12:58:20 +0100 |
---|---|---|
committer | Adis Durakovic | 2024-03-11 12:58:20 +0100 |
commit | 675a0a72ea4a672fa5f57528b08ff147ee2ed954 (patch) | |
tree | e504263354fbb3928285aefd5e2c2f10e43ce899 /PKGBUILD | |
download | aur-675a0a72ea4a672fa5f57528b08ff147ee2ed954.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..94eebd79dccb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Adis Durakovic <aur@mail.adisdurakovic.com> +pkgname=resticity +pkgver=1.0.1 +pkgrel=1 +epoch= +pkgdesc="A frontend for restic" +arch=("any") +url="https://github.com/ad-on-is/resticity" +license=('GPL3') +groups=() +depends=(go nodejs restic webkit2gtk) +makedepends=() +checkdepends=() +optdepends=() +provides=(resticity) +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("$url/archive/refs/tags/$pkgver.tar.gz") +noextract=() +sha256sums=("SKIP") +validpgpkeys=() + +prepare() { + cd "$pkgname-$pkgver" + export GOPATH=/tmp/go + export GOBIN=/tmp/go/bin + go install github.com/wailsapp/wails/v2/cmd/wails@latest +} + +build() { + cd "$pkgname-$pkgver" + export GOPATH=/tmp/go + export GOBIN=/tmp/go/bin + /tmp/go/bin/wails build +} + +check() { + cd "$pkgname-$pkgver" + +} + +package() { + cd "$pkgname-$pkgver" + install -Dm755 --no-target-directory "build/bin/resticity" "${pkgdir}/usr/bin/${pkgname}" + install -Dm755 --no-target-directory "packaging/resticity.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/${pkgname}.png" + install -Dm755 --no-target-directory "packaging/resticity.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" +}
\ No newline at end of file |