summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedroHLC2018-10-16 19:48:16 -0300
committerPedroHLC2018-10-16 19:48:16 -0300
commit7f361992f1aee5999da93e6437d515de59a5729d (patch)
treefe5c18837ed3ee2d915da016e157da944926b704
downloadaur-7f361992f1aee5999da93e6437d515de59a5729d.tar.gz
Initial release
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD28
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..abb2bf2534e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = wezterm-git
+ pkgdesc = A terminal emulator implemented in Rust, using OpenGL ES 2 for rendering.
+ pkgver = 0.1.0.536.g61fec42
+ pkgrel = 0
+ url = https://github.com/wez/wezterm
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = rust
+ makedepends = cargo
+ makedepends = cmake
+ makedepends = git
+ makedepends = ragel
+ depends = freetype2
+ depends = fontconfig
+ depends = libegl
+ depends = harfbuzz
+ depends = xcb-util-wm
+ depends = xcb-util-keysyms
+ source = wezterm::git+https://github.com/wez/wezterm.git
+ sha256sums = SKIP
+
+pkgname = wezterm-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e1af7339236
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+pkgname=('wezterm-git')
+_pkgname="wezterm"
+pkgdesc="A terminal emulator implemented in Rust, using OpenGL ES 2 for rendering."
+pkgver=0.1.0.536.g61fec42
+pkgrel=0
+arch=('x86_64' 'i686')
+url="https://github.com/wez/wezterm"
+license=('MIT')
+depends=('freetype2' 'fontconfig' 'libegl' 'harfbuzz' 'xcb-util-wm' 'xcb-util-keysyms')
+makedepends=('rust' 'cargo' 'cmake' 'git' 'ragel')
+source=("$_pkgname::git+https://github.com/wez/wezterm.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $_pkgname
+ echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git describe --always)"
+}
+
+build() {
+ cd $_pkgname
+ cargo build --release
+}
+
+package() {
+ cd $_pkgname
+ install -D -m755 "$srcdir/$_pkgname/target/release/wezterm" "$pkgdir/usr/bin/wezterm"
+}
+