blob: ea861caf4e2bcf1c8d61e647ee4a7443c770d1c1 (
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
|
# Maintainer: Denis Zheleztsov <difrex.punk@gmail.com>
pkgname=swaymgr
_pkgname=swaymgr
pkgver=0.1.1
pkgrel=1
pkgdesc="Sway autotiling manager"
arch=('x86_64')
license=('Apache 2.0')
depends=()
makedepends=(
'go'
'git'
)
source=(
"$_pkgname::https://github.com/Difrex/swaymgr/archive/${pkgver}.tar.gz"
)
md5sums=('0e3d28a23caaad5cd9e5a2072ec2f4f5')
build() {
cd "$srcdir/$_pkgname-${pkgver}/${_pkgname}"
export GOPATH="$srcdir/go"
export GOBIN="$srcdir/go/bin"
echo ":: Building binary"
go build -v
go install -v
}
package() {
find "$srcdir/go/bin/" -type f -executable | while read filename; do
install -DT "$filename" "$pkgdir/usr/bin/$(basename $filename)"
done
}
|