Add automaker package.

This commit is contained in:
Alexpux
2013-11-02 14:03:01 +04:00
parent 4fc744284c
commit a2fb138451
3 changed files with 132 additions and 0 deletions

43
automake/PKGBUILD Normal file
View File

@@ -0,0 +1,43 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
pkgname=automake
pkgver=1.14
pkgrel=1
pkgdesc="A GNU tool for automatically creating Makefiles"
arch=('any')
license=('GPL')
url="http://www.gnu.org/software/automake"
groups=('base-devel')
depends=('perl' 'bash')
makedepends=('autoconf')
checkdepends=('dejagnu' 'python2')
install=automake.install
source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz{,.sig}
automake-1.14-msys2.patch)
md5sums=('cb3fba6d631cddf12e230fd0cc1890df'
'SKIP'
'233d8dc0c46722a8940bac31a2a25cbc')
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -p1 -i ${srcdir}/automake-1.14-msys2.patch
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr
make
}
check() {
cd ${srcdir}/${pkgname}-${pkgver}
# expect 2 failures due to perl-5.18 incompatibility
make -k check || true
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
}

View File

@@ -0,0 +1,67 @@
diff -Naur automake-1.14-orig/lib/ar-lib automake-1.14/lib/ar-lib
--- automake-1.14-orig/lib/ar-lib 2013-05-09 18:13:08.000000000 +0000
+++ automake-1.14/lib/ar-lib 2013-05-16 09:13:29.442382800 +0000
@@ -53,7 +53,7 @@
MINGW*)
file_conv=mingw
;;
- CYGWIN*)
+ CYGWIN*|MSYS*)
file_conv=cygwin
;;
*)
@@ -65,7 +65,7 @@
mingw)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
- cygwin)
+ cygwin|msys)
file=`cygpath -m "$file" || echo "$file"`
;;
wine)
diff -Naur automake-1.14-orig/lib/compile automake-1.14/lib/compile
--- automake-1.14-orig/lib/compile 2013-05-09 18:13:08.000000000 +0000
+++ automake-1.14/lib/compile 2013-05-16 09:14:34.254882800 +0000
@@ -53,7 +53,7 @@
MINGW*)
file_conv=mingw
;;
- CYGWIN*)
+ CYGWIN*|MSYS*)
file_conv=cygwin
;;
*)
@@ -67,7 +67,7 @@
mingw/*)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
- cygwin/*)
+ cygwin/*|msys/*)
file=`cygpath -m "$file" || echo "$file"`
;;
wine/*)
diff -Naur automake-1.14-orig/lib/config.guess automake-1.14/lib/config.guess
--- automake-1.14-orig/lib/config.guess 2013-05-13 20:12:48.000000000 +0000
+++ automake-1.14/lib/config.guess 2013-05-16 09:14:15.176757800 +0000
@@ -845,6 +845,9 @@
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
echo x86_64-unknown-cygwin
exit ;;
+ amd64:MSYS*:*:* | x86_64:MSYS*:*:*)
+ echo x86_64-unknown-msys
+ exit ;;
p*:CYGWIN*:*)
echo powerpcle-unknown-cygwin
exit ;;
diff -Naur automake-1.14-orig/t/compile5.sh automake-1.14/t/compile5.sh
--- automake-1.14-orig/t/compile5.sh 2013-05-09 18:13:08.000000000 +0000
+++ automake-1.14/t/compile5.sh 2013-05-16 09:15:38.355468800 +0000
@@ -47,7 +47,7 @@
;;
esac
case @build_os@ in
- mingw* | cygwin*)
+ mingw* | cygwin* | msys*)
;;
*)
winepath -w / \

22
automake/automake.install Normal file
View File

@@ -0,0 +1,22 @@
infodir=/usr/share/info
filelist=(automake.info automake.info-1 automake.info-2)
post_install() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist[@]}; do
install-info $infodir/$file.gz $infodir/dir 2> /dev/null
done
}
post_upgrade() {
post_install $1
}
pre_remove() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist[@]}; do
install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
done
}
# vim:set ts=2 sw=2 et: