summaryrefslogtreecommitdiff
path: root/package.sh
blob: 6781b1538cf46ce1f63e930c9a2d6e97dea7409f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
set -e
shopt -s extglob nullglob

export PKG_MAKE=$0
export PKG_NAME=${1%_}

export PKG_BASE=$(realpath "$(dirname "$0")")
. "${PKG_BASE}/helper.sh"

./make.sh "${PKG_NAME}"

pkg: mkdir -p /DEBIAN
./control.sh "${PKG_NAME}" control >"$(pkg_ /DEBIAN/control)"
dpkg-deb -b "${PKG_DEST}" "${PKG_PACK}"
pkg: rm -rf /DEBIAN