blob: 43430aa7342958761a407df54acfe5444de5f57e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: EvaristeGalois11 <turbo dot backslid four zero zero at passinbox dot com>
# Contributor: Antonio Muñoz <agmconejo AT gmail DOT com>
pkgname=ora2pg
pkgver=24.3
pkgrel=1
pkgdesc="Oracle to PostgreSQL database schema converter"
arch=('any')
url="http://ora2pg.darold.net"
license=('GPL-3.0-or-later')
depends=('perl' 'perl-dbd-oracle')
optdepends=('perl-dbd-pg: connect to a PostgreSQL db'
'perl-dbd-mysql: connect to a MySQL db'
'perl-term-readkey: read input from terminal')
options=('!emptydirs')
source=("$pkgname-$pkgver.tar.gz::https://github.com/darold/ora2pg/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('7d031c033c31265cf1b2eeb3f654623af8211ea748798af289dedd394a5eb18c')
build() {
cd "ora2pg-${pkgver}"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL DESTDIR=${pkgdir} INSTALLDIRS=vendor
make
}
package() {
cd "ora2pg-${pkgver}"
make DESTDIR="${pkgdir}/" install
cp ${pkgdir}/etc/ora2pg/ora2pg.conf{.dist,}
sed -i "s#${pkgdir}##" ${pkgdir}/usr/bin/vendor_perl/ora2pg
}
|