debmaker/ressources/mysqlfdw/debmaker
2023-09-02 22:51:34 +02:00

30 lines
684 B
Bash
Executable file

#!/bin/bash
VERSION=2_9_1
APP=mysqlfdw
DEPOT=https://github.com/EnterpriseDB/mysql_fdw.git
GIT_VERSION=REL-${VERSION}
DEB_VERSION=$(echo ${VERSION} | sed 's/_/./g' )-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bookworm
IMAGE_SIZE=4
PACKAGE_DEPENDENCY="build-essential autoconf libmariadb-dev-compat mariadb-server postgresql-server-dev-15 postgresql"
main(){
base_package_upgrade
install_package_dependency
get_git_source
build
makedeb
}
build() {
cd /tmp/${APP}
make USE_PGXS=1 install DESTDIR=/tmp/src/rootfs
}
makedeb(){
PATH_DEB=/tmp/src/rootfs
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}