diff options
author | pyamsoft | 2019-02-21 12:05:24 -0800 |
---|---|---|
committer | pyamsoft | 2019-02-21 12:05:24 -0800 |
commit | f53d1f89983b0df710ebfc504b0d0a68efe42c65 (patch) | |
tree | 9578b4488d31c88da58e36f3e41aedf4c65fe0ab | |
download | aur-f53d1f89983b0df710ebfc504b0d0a68efe42c65.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 75 |
2 files changed, 91 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..22d7c8d12338 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = xwinwrap-git + pkgdesc = Fork of XwinWrap from ujjwal96 on GitHub + pkgver = r5.ec32e9b + pkgrel = 1 + url = https://github.com/ujjwal96/xwinwrap + arch = any + license = Other/Open Source + makedepends = git + depends = git + provides = xwinwrap + conflicts = xwinwrap + source = xwinwrap::git+https://github.com/ujjwal96/xwinwrap#branch=master + sha256sums = SKIP + +pkgname = xwinwrap-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d1d42d5d7560 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,75 @@ +## +# Maintainer: pyamsoft <pyam(dot)soft(at)gmail(dot)com> +## + +_gitname=xwinwrap +# shellcheck disable=SC2034 +pkgname=xwinwrap-git +# shellcheck disable=SC2034 +pkgdesc="Fork of XwinWrap from ujjwal96 on GitHub" +# shellcheck disable=SC2034 +pkgver=r5.ec32e9b +# shellcheck disable=SC2034 +pkgrel=1 +# shellcheck disable=SC2034 +arch=('any') +# shellcheck disable=SC2034 +makedepends=('git') +# shellcheck disable=SC2034 +depends=('git') +# shellcheck disable=SC2034 +optdepends=() +# shellcheck disable=SC2034 +provides=('xwinwrap') +# shellcheck disable=SC2034 +conflicts=('xwinwrap') +# shellcheck disable=SC2034 +license=('Other/Open Source') +# shellcheck disable=SC2034 +url="https://github.com/ujjwal96/xwinwrap" + +## +# The SHA256 is constantly changing since this is +# pulled from git so skip the verification check +## +# shellcheck disable=SC2034 +sha256sums=('SKIP') +# shellcheck disable=SC2034 +source=("${_gitname}::git+${url}#branch=master") + +############################################################################### + +pkgver() { + # shellcheck disable=SC2154 + cd "$srcdir/$_gitname" || { + msg "Error couldn't cd into $srcdir/$_gitname" + return 1 + } + + # From + # https://wiki.archlinux.org/index.php/VCS_package_guidelines#The_pkgver.28.29_function + # If there are no tags then use number of revisions since beginning of the history: + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + # shellcheck disable=SC2154 + cd "$srcdir/$_gitname" || { + msg "Error couldn't cd into $srcdir/$_gitname" + return 1 + } + + make +} + +package() { + cd "$srcdir/$_gitname" || { + msg "Error couldn't cd into $srcdir/$_gitname" + return 1 + } + + chmod 755 xwinwrap + mkdir -p "${pkgdir}/usr/bin" + cp xwinwrap "${pkgdir}/usr/bin/xwinwrap" +} + |