cygnative: new package

Source: https://github.com/davidecolombo/cygnative

Required for rsync+plink integration.
This commit is contained in:
Orgad Shaneh 2022-04-13 13:13:26 +03:00
parent 106e2e47af
commit 8811b7f87f
2 changed files with 26 additions and 0 deletions

1
cygnative/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/cygnative

25
cygnative/PKGBUILD Normal file
View File

@ -0,0 +1,25 @@
# Maintainer: Orgad Shaneh <orgads@gmail.com>
_realname=cygnative
pkgname="${_realname}"
pkgver=r9.2cbf760
pkgrel=1
pkgdesc="A wrapper for cygwin programs which call native Win32 programs with stdin and/or stdout handle redirected"
arch=('i686' 'x86_64')
license=('MIT')
depends=('gcc')
url="https://github.com/davidecolombo/cygnative"
_commit="2cbf7602ebe94d0c948474b59d47bb746f041587"
source=("${_realname}"::"git+https://github.com/davidecolombo/cygnative#commit=${_commit}")
sha256sums=('SKIP')
pkgver() {
cd ${pkgname}
printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}
package() {
cd "${srcdir}/${_realname}"
mkdir -p "${pkgdir}/usr/bin"
gcc -O2 -o "${pkgdir}/usr/bin/cygnative" cygnative.c
}