blob: 855b6b47f596096da1e30a740b933164cd96c9e7 (
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
|
#!/bin/bash
# A convenience script for the package creator.
# This file is not run on package installation.
set -euo pipefail
shopt -s failglob
# Reset customised values to defaults
PACMAN=
PATH=/usr/bin:$PATH
# Compressing is slow when building many times
export PKGEXT=.pkg.tar
pkgdir=${0%%/*} # dirname $0
cd -P -- "$pkgdir" || exit 1 # Allow to be called from any directory
if [[ -d src ]]; then
makepkg -ef "$@"
else
makepkg -f "$@"
fi
namcap PKGBUILD
namcap ./*.pkg.*
makepkg --printsrcinfo >| .SRCINFO && echo "Updated .SRCINFO" >&2
|