2022-02-27 00:50:15 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-09-15 01:04:23 +02:00
|
|
|
VERSION=0.108.0-b.15
|
2022-03-22 22:24:15 +01:00
|
|
|
APP=adguardhome
|
|
|
|
DEPOT=https://github.com/AdguardTeam/AdGuardHome.git
|
|
|
|
GIT_VERSION=v${VERSION}
|
2022-04-19 01:23:36 +02:00
|
|
|
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
|
2022-02-28 23:26:47 +01:00
|
|
|
DEBIAN_VERSION_CODENAME=bullseye
|
|
|
|
IMAGE_SIZE=4
|
2022-08-17 20:35:16 +02:00
|
|
|
PACKAGE_DEPENDENCY="build-essential nodejs yarn"
|
2022-02-27 00:50:15 +01:00
|
|
|
|
2022-08-17 20:35:16 +02:00
|
|
|
STEP="base_package_upgrade configure_depot_yarn configure_depot_nodejs install_package_dependency install_go get_git_source build makedeb"
|
2022-02-27 00:50:15 +01:00
|
|
|
|
|
|
|
build() {
|
2022-03-22 22:24:15 +01:00
|
|
|
cd /tmp/${APP}
|
2022-02-27 00:50:15 +01:00
|
|
|
PATH=$PATH:/usr/local/go/bin
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
makedeb(){
|
|
|
|
PATH_DEB=/tmp/src/rootfs
|
|
|
|
|
|
|
|
cp /tmp/adguardhome/AdGuardHome ${PATH_DEB}/usr/bin/adguardhome
|
|
|
|
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
|
|
|
|
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
|
|
|
|
}
|