mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 18:17:14 +08:00
45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/recode
|
|
|
|
pkgname=recode
|
|
_pkgname=Recode
|
|
pkgver=3.6
|
|
pkgrel=6
|
|
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')
|
|
install=recode.install
|
|
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/pinard/${pkgname}/tarball/v${pkgver}"
|
|
'http://ftp.de.debian.org/debian/pool/main/r/recode/recode_3.6-17.diff.gz'
|
|
'recode-3.6-as-if.patch' 'recode-3.6-gettextfix.diff')
|
|
md5sums=('f82e9a6ede9119268c13493c9add2809'
|
|
'3716ae269074e31add3d29387ff09438'
|
|
'fca7484ba332c8ad59eb02334883cd92'
|
|
'eb602e80a24b5448604bfebeacc55304')
|
|
|
|
prepare() {
|
|
cd pinard-Recode-2127b34
|
|
patch -Np1 -i "${srcdir}/recode-3.6-as-if.patch"
|
|
patch -Np1 -i "${srcdir}/recode-3.6-gettextfix.diff"
|
|
patch -Np1 -i "${srcdir}/recode_3.6-17.diff"
|
|
sed -i '1i#include <stdlib.h>' src/argmatch.c
|
|
sed -i -e '/^AM_C_PROTOTYPES/d' -e '/^AUTOMAKE_OPTIONS.*ansi2knr/d' \
|
|
configure.in src/Makefile.am
|
|
}
|
|
|
|
build() {
|
|
cd pinard-Recode-2127b34
|
|
rm -f acinclude.m4
|
|
autoreconf -fi
|
|
libtoolize
|
|
./configure --prefix=/usr --mandir=/usr/share/man \
|
|
--infodir=/usr/share/info --without-included-gettext
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd pinard-Recode-2127b34
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|