mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
30 lines
941 B
Bash
30 lines
941 B
Bash
pkgname=perl-dbd-sybase
|
|
pkgver=1.09
|
|
pkgrel=1
|
|
pkgdesc="Sybase Driver for DBI"
|
|
arch=('i686' 'x86_64')
|
|
url="http://search.cpan.org/dist/DBD-Sybase/"
|
|
license=('GPL' 'PerlArtistic')
|
|
depends=('perl-dbi>=1.52' 'perl>=5.10.0' 'freetds')
|
|
options=('!emptydirs')
|
|
source=(http://search.cpan.org/CPAN/authors/id/M/ME/MEWP/DBD-Sybase-$pkgver.tar.gz)
|
|
|
|
build() {
|
|
cd $startdir/src/DBD-Sybase-$pkgver
|
|
export SYBASE=/usr
|
|
echo -e "\n\n\n\n\n\n" | PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
|
|
|
|
patch -p1 dbdimp.c <<EOF
|
|
diff -r DBD-Sybase-1.08/dbdimp.c DBD-Sybase-1.08.my/dbdimp.c
|
|
13a14,17
|
|
> #define BLK_VERSION_120 BLK_VERSION_100
|
|
> #define BLK_VERSION_125 BLK_VERSION_100
|
|
> #define BLK_VERSION_150 BLK_VERSION_100
|
|
>
|
|
EOF
|
|
make || return 1
|
|
make install DESTDIR=$startdir/pkg || return 1
|
|
find $startdir/pkg -name '.packlist' -delete
|
|
find $startdir/pkg -name '*.pod' -delete
|
|
}
|
|
md5sums=('8ed2c2dd5df35cdee890fa8135e981ec')
|