33 lines
788 B
Bash
Executable file
33 lines
788 B
Bash
Executable file
#!/bin/bash
|
|
set -ue
|
|
# Src:
|
|
# https://earthly.dev/blog/creating-and-hosting-your-own-deb-packages-and-apt-repo/
|
|
|
|
. PKGBUILD
|
|
|
|
srcdir="${PWD}/src"
|
|
pkgdir="${PWD}/${pkgname}_${pkgver}-${pkgrel}_${arch}"
|
|
rootdir="${PWD}"
|
|
mkdir -p "${srcdir}"
|
|
cd "${srcdir}"
|
|
wget -c https://www.tigerjython.ch/user/pages/download/TigerJython.tar.gz
|
|
# if ! [ -f TigerJython.tar.gz ];then wget https://www.tigerjython.ch/user/pages/download/TigerJython.tar.gz;fi
|
|
tar -xf TigerJython.tar.gz
|
|
prepare
|
|
|
|
build
|
|
|
|
mkdir -p "${pkgdir}"
|
|
cd "${pkgdir}"
|
|
package
|
|
|
|
mkdir -p ${pkgdir}/DEBIAN
|
|
echo "Package: ${pkgname}
|
|
Version: ${pkgver}
|
|
Maintainer: Beat Jäckle <beat@git.jdmweb2.ch>
|
|
Depends: default-jre
|
|
Architecture: amd64
|
|
Homepage: ${url}
|
|
Description: ${pkgdesc}" \
|
|
> ${pkgdir}/DEBIAN/control
|
|
fakeroot dpkg --build ${pkgdir}
|