mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 17:57:13 +08:00
35 lines
936 B
Bash
35 lines
936 B
Bash
# Maintainer: abveritas[at]chakra-project[dot]org>
|
|
|
|
pkgname=recode
|
|
_pkgname=Recode
|
|
pkgver=3.6
|
|
pkgrel=5
|
|
pkgdesc="Converts files between various character sets and usages"
|
|
arch=('x86_64')
|
|
url="http://www.gnu.org/software/recode/recode.html"
|
|
license=('GPL' 'LGPL')
|
|
depends=('glibc' 'texinfo')
|
|
options=('!libtool')
|
|
install=recode.install
|
|
source=("https://github.com/pinard/${_pkgname}/archive/v${pkgver}.tar.gz"
|
|
'recode-3.6-gcc43.patch')
|
|
md5sums=('977d5e836dc6540b120d00ecdf14d25d'
|
|
'47b62d7031d208180552174f9e223e9d')
|
|
|
|
build() {
|
|
cd ${srcdir}/${_pkgname}-${pkgver}
|
|
patch -p0 < ../recode-3.6-gcc43.patch
|
|
./configure --prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--host=i686-pc-linux-gnu
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${_pkgname}-${pkgver}
|
|
make DESTDIR=${pkgdir} install
|
|
rm ${pkgdir}/usr/share/info/dir
|
|
gzip ${pkgdir}/usr/share/info/*
|
|
}
|