blob: 45858a96d0cc9c0bb7671eb6ce65a7af8adcc039 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Insidious Fiddler <aur[at]codycody31[dot]dev>
pkgname=postpilot
pkgver=0.1.3
pkgrel=1
pkgdesc="A sleek local SMTP testing environment for developers"
arch=('x86_64' 'aarch64')
url="https://github.com/watzon/postpilot"
license=('custom')
depends=('gtk3' 'webkit2gtk')
makedepends=('go' 'wails' 'npm' 'nodejs>=16')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz" "postpilot.desktop")
sha256sums=('9a9f1c34ed2f47e5acab693f19627ee2e3c2cff68737c9bf26de65cfc2895ad1'
'a862a97f3e5844306d428dd8f659cd078f0bb8d1552d5d79303896381b1c749b')
prepare() {
cd "$srcdir/$pkgname-$pkgver/frontend"
npm install
cd "$srcdir/$pkgname-$pkgver"
go mod tidy
}
build() {
cd "$srcdir/$pkgname-$pkgver"
wails build
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 "build/bin/postpilot" "$pkgdir/usr/bin/postpilot"
install -Dm644 "$srcdir/postpilot.desktop" "$pkgdir/usr/share/applications/postpilot.desktop"
install -Dm644 "frontend/src/assets/images/logo.svg" "$pkgdir/usr/share/pixmaps/postpilot.svg"
}
|