diff options
author | Filipe Nascimento | 2020-09-29 14:51:53 -0300 |
---|---|---|
committer | Filipe Nascimento | 2020-09-29 14:51:53 -0300 |
commit | fe327d2aade54b4e8c90fd49f2f51061acebec52 (patch) | |
tree | c02a96e4ece65bb10841d71baf77a33f401c3f9e | |
download | aur-fe327d2aade54b4e8c90fd49f2f51061acebec52.tar.gz |
Initial upload: 3mux 1.0.1-1
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7224f7319ab0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = 3mux + pkgdesc = Terminal multiplexer inspired by i3 + pkgver = 1.0.1 + pkgrel = 1 + url = https://github.com/aaronjanse/3mux + arch = i686 + arch = x86_64 + arch = armv7h + arch = armv6h + arch = aarch64 + license = MIT + makedepends = go + depends = glibc + source = 3mux-1.0.1.tar.gz::https://github.com/aaronjanse/3mux/archive/v1.0.1.tar.gz + sha256sums = 925e23850ad69ce12069bb4c48af6e70c820bbd4bfe5a83ebf72eaefb9d8ab83 + +pkgname = 3mux + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bc8c485c9311 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Filipe Nascimento <flipee at tuta dot io> + +pkgname=3mux +pkgver=1.0.1 +pkgrel=1 +pkgdesc="Terminal multiplexer inspired by i3" +arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64') +url="https://github.com/aaronjanse/3mux" +license=('MIT') +depends=('glibc') +makedepends=('go') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('925e23850ad69ce12069bb4c48af6e70c820bbd4bfe5a83ebf72eaefb9d8ab83') + +build() { + cd $pkgname-$pkgver + + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + + go build \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags "-linkmode=external" +} + +package() { + cd $pkgname-$pkgver + install -Dm755 $pkgname -t "$pkgdir/usr/bin" + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" +} |