blob: d2442ebb5df0d82a973fa5ed0e98f44721642389 (
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
|
PKG_NAME := "::jpg.proj.name::"
AUR_GIT_URL := 'ssh://aur@aur.archlinux.org/' + PKG_NAME + '.git'
use_jj := env("use_jj", `type jj 2> /dev/null || echo ""`)
# initialize project
initialize:
git branch -m master # AUR only accept 'master' branch
if [ -n '{{use_jj}}' ]; then jj git init --colocate; fi
# update package metadata
update:
makepkg --printsrcinfo > .SRCINFO # .SRCINFO must exists in all the commits
updpkgsums
# build package
build: update
makepkg -sf
# install package
install: update
makepkg -si
|