summarylogtreecommitdiffstats
path: root/make-check
blob: d21afdb28ff7dc487f1df6cc6913d7a53b032bcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

# A convenience script for the package creator.
# This file is not run on package installation.

PACMAN=
PATH=/usr/bin:$PATH

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 ./*.tar.xz

makepkg --printsrcinfo >| .SRCINFO && echo "Updated .SRCINFO" >&2