Skip to content

Commit

Permalink
flex: build for cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Feb 2, 2025
1 parent 8f0d849 commit 5df6a84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 90 deletions.
14 changes: 6 additions & 8 deletions flex/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgname=flex
pkgver=2.6.4
pkgrel=3
pkgrel=4
pkgdesc="A tool for generating text-scanning programs"
arch=('i686' 'x86_64')
url="https://github.com/westes/flex"
Expand All @@ -14,23 +14,21 @@ license=('custom')
depends=('m4' 'sh' 'libiconv' 'libintl')
makedepends=('libiconv-devel' 'gettext-devel' 'autotools' 'gcc')
options=('staticlibs')
source=(https://github.com/westes/flex/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz
flex-2.5.38-msys2.patch)
sha256sums=('e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995'
'6ffcb831faa9c29c44b717825744887ea5b3945605153831339e0b8a37cbe5c3')
source=(https://github.com/westes/flex/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995')

prepare() {
cd ${srcdir}/${pkgname}-${pkgver}

patch -p1 -i ${srcdir}/flex-2.5.38-msys2.patch

./autogen.sh
}

build() {
cd ${srcdir}/${pkgname}-${pkgver}

local CYGWIN_CHOST="${CHOST/-msys/-cygwin}"
./configure \
--build=${CHOST} \
--build=${CYGWIN_CHOST} \
--prefix=/usr \
--without-libiconv-prefix \
--without-libintl-prefix \
Expand Down
82 changes: 0 additions & 82 deletions flex/flex-2.5.38-msys2.patch

This file was deleted.

0 comments on commit 5df6a84

Please sign in to comment.