diff options
author | Solomon Choina | 2017-12-14 20:30:40 -0500 |
---|---|---|
committer | Solomon Choina | 2017-12-14 20:30:40 -0500 |
commit | 0a3520fdb5c68c7f7d2d001488d44bf521989ddd (patch) | |
tree | 242b2489ab114cd0c549f4698904c44ea38c7cec | |
download | aur-0a3520fdb5c68c7f7d2d001488d44bf521989ddd.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3b97c1a19ada --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Fri Dec 15 01:30:36 UTC 2017 +pkgbase = wxglterm-git + pkgdesc = a cross platform terminal emulator using wxWidgets and python, drawing using OpenGL + pkgver = r179.a3869ea + pkgrel = 1 + url = https://github.com/stonewell/wxglterm + arch = x86_64 + license = MIT + makedepends = git + makedepends = cmake + makedepends = pybind11 + depends = wxgtk3 + source = git+https://github.com/stonewell/wxglterm + sha256sums = SKIP + +pkgname = wxglterm-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7eca6589fc26 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# The following guidelines are specific to BZR, GIT, HG and SVN packages. +# Other VCS sources are not natively supported by makepkg yet. + +# Maintainer: Solomon Choina <shlomochoina@gmail.com> +pkgname=wxglterm-git +_pkgname=wxglterm +pkgver=r179.a3869ea +pkgrel=1 +pkgdesc="a cross platform terminal emulator using wxWidgets and python, drawing using OpenGL" +arch=('x86_64') +url="https://github.com/stonewell/wxglterm" +license=('MIT') +depends=('wxgtk3') +makedepends=('git' 'cmake' 'pybind11') # 'bzr', 'git', 'mercurial' or 'subversion' +options=() +source=("git+$url") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_pkgname}" + + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + +} + +prepare (){ + cd "${srcdir}/${_pkgname}" + if [[ -d build ]]; then + rm -rf build + fi + mkdir build +} +build() { + #you need to go into $srcdir/build and do it manually + cd "${srcdir}/${_pkgname}" + export LDFLAGS="$LDFLAGS -lutil" + cmake . -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_INCLUDE_DIR=/usr/include/python3.6m -DPYTHON_LIBRARY=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6m.a + make + +} + +package() { + cd "${srcdir}/${_pkgname}" + make DESTDIR="$pkgdir/" install +} |