2023-09-15 16:33:15 +02:00

53 lines
1.2 KiB
Bash

# Maintainer: Jeremy Drake <github@jdrake.com>
pkgname=cygutils
pkgver=1.4.17
pkgrel=2
pkgdesc="${pkgname} is a collection of simple utilities"
arch=('i686' 'x86_64')
url="https://cygwin.org/"
license=('spdx:GPL-3.0-or-later')
depends=('gcc-libs' 'popt' 'libiconv' 'libintl')
makedepends=('gcc'
'gettext-devel'
'git'
'libiconv-devel'
'autotools'
'popt-devel')
conflicts=('winln')
replaces=('winln')
provides=('winln')
_commit='a804501b8c33c55a45a87b6e505b4e5db41e4f2f'
source=("${pkgname}-${pkgver}::git+https://sourceware.org/git/cygwin-apps/${pkgname}.git#commit=${_commit}")
sha256sums=('SKIP')
prepare(){
cd ${pkgname}-${pkgver}
autoreconf -fi
}
build() {
mkdir -p "${srcdir}/build-${CHOST}"
cd "${srcdir}/build-${CHOST}"
CXXFLAGS+=" -std=gnu++14"
export MSYSTEM=CYGWIN
local CYGWIN_CHOST="${CHOST/-msys/-cygwin}"
../${pkgname}-${pkgver}/configure \
--prefix=/usr \
--build=${CYGWIN_CHOST} \
--host=${CYGWIN_CHOST} \
--target=${CYGWIN_CHOST}
make
}
package() {
cd "${srcdir}/build-${CHOST}"
make DESTDIR="${pkgdir}" install
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}