creduce-git: Made into a mingw-w64 package only
Though it does use msys2 perl ..
This commit is contained in:
@@ -1,9 +1,20 @@
|
||||
# Maintainer: Ray Donnelly <mingw.android@gmail.com>
|
||||
|
||||
_realname=creduce
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}-git" "${_realname}-git-perl-${CARCH}")
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}-git")
|
||||
provides=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||
pkgver=creduce.2.2.0.18.g3f1d123
|
||||
pkgrel=1
|
||||
pkgdesc="A C program reducer (mingw-w64)"
|
||||
depends=('delta'
|
||||
'perl-Benchmark-Timer'
|
||||
'perl-Exporter-Lite'
|
||||
'perl-File-Which'
|
||||
'perl-Getopt-Tabular'
|
||||
'perl-Regexp-Common'
|
||||
'perl-Sys-CPU'
|
||||
"${MINGW_PACKAGE_PREFIX}-astyle"
|
||||
"${MINGW_PACKAGE_PREFIX}-indent")
|
||||
arch=('any')
|
||||
url='https://github.com/csmith-project/creduce'
|
||||
license=('custom:University of Illinois/NCSA Open Source License')
|
||||
@@ -35,13 +46,10 @@ build() {
|
||||
--prefix=${MINGW_PREFIX} \
|
||||
--build=${MINGW_CHOST} \
|
||||
--host=${MINGW_CHOST}
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package_mingw-w64-creduce-git() {
|
||||
pkgdesc='A C program reducer (mingw-w64)'
|
||||
depends=("${_realname}-git-perl-${CARCH}")
|
||||
package() {
|
||||
cd "$srcdir/${CARCH}"
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -Dm644 "../$_realname/COPYING" "$pkgdir${MINGW_PREFIX}/share/licenses/$_realname/COPYING"
|
||||
@@ -51,44 +59,4 @@ package_mingw-w64-creduce-git() {
|
||||
# .. to msys2 perl.
|
||||
sed "s|${MINGW_PREFIX}|/usr|g" \
|
||||
-i $pkgdir${MINGW_PREFIX}/bin/creduce
|
||||
rm -rf $pkgdir${MINGW_PREFIX}/share/creduce/perl
|
||||
}
|
||||
|
||||
package_creduce-git-perl() {
|
||||
pkgdesc='A C program reducer - perl scripts'
|
||||
depends=('delta'
|
||||
'perl-Benchmark-Timer'
|
||||
'perl-Exporter-Lite'
|
||||
'perl-File-Which'
|
||||
'perl-Getopt-Tabular'
|
||||
'perl-Regexp-Common'
|
||||
'perl-Sys-CPU'
|
||||
"${MINGW_PACKAGE_PREFIX}-astyle"
|
||||
"${MINGW_PACKAGE_PREFIX}-indent"
|
||||
)
|
||||
cd "$srcdir/${CARCH}"
|
||||
make DESTDIR="$pkgdir" install
|
||||
# Use sed to switch to MSYS2 perl instead of MinGW-w64 perl.
|
||||
rm -rf $pkgdir${MINGW_PREFIX}/{bin,libexec}
|
||||
mv $pkgdir${MINGW_PREFIX} $pkgdir/usr
|
||||
}
|
||||
|
||||
package_mingw-w64-x86_64-creduce-git() {
|
||||
package_mingw-w64-creduce-git
|
||||
}
|
||||
|
||||
package_mingw-w64-i686-creduce-git() {
|
||||
package_mingw-w64-creduce-git
|
||||
}
|
||||
|
||||
package_creduce-git-perl-i686() {
|
||||
package_creduce-git-perl
|
||||
}
|
||||
|
||||
package_creduce-git-perl-x86_64() {
|
||||
package_creduce-git-perl
|
||||
}
|
||||
|
||||
# configure: WARNING: You must install Artistic Style before running C-Reduce
|
||||
# configure: WARNING: You must install GNU Indent before running C-Reduce
|
||||
# configure: WARNING: Read the INSTALL file for info about C-Reduce dependencies
|
||||
|
||||
Reference in New Issue
Block a user