blob: 10dcca9b3c45ee3da48d1939eca0b887e827dfdd (
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
33
34
35
36
37
38
|
# Maintainer: Piotr Miller <nwg.piotr@gmail.com>
# Project: nwg-shell for sway, https://github.com/nwg-piotr/nwg-shell
pkgname=('nwg-menu')
pkgver=0.1.1
pkgrel=1
pkgdesc="MenuStart for sway and other wlroots-based compositors"
arch=('x86_64')
url="https://github.com/nwg-piotr/nwg-menu"
license=('MIT')
provides=('nwg-menu')
conflicts=('nwg-menu-git' 'nwg-menu-bin')
makedepends=('go')
depends=('gtk3' 'gtk-layer-shell')
optdepends=('alacritty: to open .desktop files with Terminal=true'
'thunar: to open files and directories')
source=("$pkgname-$pkgver.tar.gz::https://github.com/nwg-piotr/nwg-menu/archive/v"$pkgver".tar.gz")
md5sums=('5becee147d292835aa588b54f47925a5')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
export GOPATH="${srcdir}"/go
export PATH=$PATH:$GOPATH/bin
go build -o bin/nwg-menu *.go
}
package() {
cd "$srcdir"
install -d "$pkgdir"/usr/share/"$pkgname"/desktop-directories
install -Dm644 -t "$pkgdir"/usr/share/"$pkgname"/desktop-directories/ "$pkgname"-"$pkgver"/desktop-directories/*
install -Dm644 -t "$pkgdir"/usr/share/"$pkgname" "$pkgname"-"$pkgver"/menu-start.css
install -Dm755 -t "$pkgdir"/usr/bin "$pkgname"-"$pkgver"/bin/nwg-menu
}
|