diff options
Diffstat (limited to 'community/units')
-rw-r--r-- | community/units/PKGBUILD | 15 | ||||
-rw-r--r-- | community/units/build-fix.patch | 18 |
2 files changed, 27 insertions, 6 deletions
diff --git a/community/units/PKGBUILD b/community/units/PKGBUILD index 400bfd524..f14114da1 100644 --- a/community/units/PKGBUILD +++ b/community/units/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 65347 2012-02-21 02:15:35Z spupykin $ +# $Id: PKGBUILD 73111 2012-07-01 18:55:45Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Maintainer: Jeff Mickey <jeff@archlinux.org> # Contributor: Steve Sansom <snsansom@gmail.com> pkgname=units -pkgver=1.88 -pkgrel=4 +pkgver=2.00 +pkgrel=1 pkgdesc="converts between different units" arch=('i686' 'x86_64') url="http://www.gnu.org/software/units/units.html" @@ -13,12 +13,15 @@ depends=('readline') license=("GPL") options=('!makeflags') install=units.install -source=(http://ftp.gnu.org/gnu/units/$pkgname-$pkgver.tar.gz) -md5sums=('9b2ee6e7e0e9c62741944cf33fc8a656') +source=(http://ftp.gnu.org/gnu/units/$pkgname-$pkgver.tar.gz + build-fix.patch) +md5sums=('6d0518d493f9bab5aa318a3c7d0801b2' + 'bf891464e398b0ddadac97dd7ce948c4') build() { cd $srcdir/$pkgname-$pkgver - ./configure --prefix=/usr --datadir=/usr/share/units + patch -p1 <$srcdir/build-fix.patch + ./configure --prefix=/usr --datadir=/usr/share make make DESTDIR=$pkgdir install } diff --git a/community/units/build-fix.patch b/community/units/build-fix.patch new file mode 100644 index 000000000..219c16b85 --- /dev/null +++ b/community/units/build-fix.patch @@ -0,0 +1,18 @@ +diff -wbBur units-2.00.org/Makefile.in units-2.00/Makefile.in +--- units-2.00.org/Makefile.in 2012-05-03 00:37:55.000000000 +0400 ++++ units-2.00/Makefile.in 2012-07-01 22:44:37.000000000 +0400 +@@ -84,10 +84,10 @@ + sed -e "s:outfile = 'currency.units':outfile='@UDAT@currency.units':" units_cur > units_cur_inst + + install-support: definitions.units currency.units units_cur_inst +- $(srcdir)/mkinstalldirs @UDAT@ $(DESTDIR)$(bindir) +- $(INSTALL_DATA) $(srcdir)/definitions.units @UDAT@definitions.units +- $(INSTALL_DATA) $(srcdir)/currency.units @UDAT@currency.units +- $(INSTALL_DATA) $(srcdir)/locale.map @UDAT@locale.map ++ $(srcdir)/mkinstalldirs $(DESTDIR)/@UDAT@ $(DESTDIR)$(bindir) ++ $(INSTALL_DATA) $(srcdir)/definitions.units $(DESTDIR)/@UDAT@definitions.units ++ $(INSTALL_DATA) $(srcdir)/currency.units $(DESTDIR)/@UDAT@currency.units ++ $(INSTALL_DATA) $(srcdir)/locale.map $(DESTDIR)/@UDAT@locale.map + $(INSTALL_PROGRAM) units_cur_inst $(DESTDIR)$(bindir)/`echo units_cur|sed '$(transform)'` + + install: units@EXEEXT@ install-doc install-support |