Skip to content

Commit

Permalink
flex: Update to 2.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
atom.long committed May 30, 2017
1 parent a1f4833 commit f5bd91d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions flex/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgname=flex
pkgver=2.6.3
pkgver=2.6.4
pkgrel=1
pkgdesc="A tool for generating text-scanning programs"
arch=('i686' 'x86_64')
Expand All @@ -12,9 +12,9 @@ depends=('m4' 'sh' 'libiconv' 'libintl')
makedepends=('libiconv-devel' 'gettext-devel')
options=('staticlibs')
install=flex.install
source=(https://github.com/westes/flex/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.lz
source=(https://github.com/westes/flex/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz
flex-2.5.38-msys2.patch)
sha256sums=('907eeec6db1af86a26921888c2912e5d68ac5499ce5727d7b850a666ae209326'
sha256sums=('e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995'
'6ffcb831faa9c29c44b717825744887ea5b3945605153831339e0b8a37cbe5c3')

prepare() {
Expand Down Expand Up @@ -51,8 +51,12 @@ package() {
cd ${srcdir}/${pkgname}-${pkgver}

make DESTDIR=${pkgdir} install
cp -f ${pkgdir}/usr/bin/flex.exe ${pkgdir}/usr/bin/flex++.exe
cp -f ${pkgdir}/usr/bin/flex.exe ${pkgdir}/usr/bin/lex.exe
if [ ! -f ${pkgdir}/usr/bin/flex++.exe ]; then
cp -f ${pkgdir}/usr/bin/flex.exe ${pkgdir}/usr/bin/flex++.exe
fi
if [ ! -f ${pkgdir}/usr/bin/lex.exe ]; then
cp -f ${pkgdir}/usr/bin/flex.exe ${pkgdir}/usr/bin/lex.exe
fi

install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgdir}/license.txt
}

0 comments on commit f5bd91d

Please sign in to comment.