summaryrefslogtreecommitdiff
path: root/mipsrelease
blob: a4e439444fb219a3d7c1017ada0e3fbfedf26592 (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
#!/bin/bash
# Lic: GPLv3+
# Author: Nicolas Reynolds <fauno@kiwwwi.com.ar>
# Local release of mips64el packages + clean ABS sync
# Called by HOOKLOCALRELEASE

# $1 repo
# $2+ packages 

source /etc/makepkg.conf
source /etc/libretools.conf

repo=$1; shift

repo-add ${PKGDEST}/stage3.db.tar.gz $@ 

# Get all needed sources
source PKGBUILD
makepkg --source

mkdir -p ${WORKDIR}/abs/${CARCH}/${repo} >/dev/null

pushd ${WORKDIR}/abs/${CARCH}/${repo} >/dev/null
  tar xvf $SRCPKGDEST/${pkgbase:-${pkgname[0]}}-${pkgver}-${pkgrel}${SRCEXT}
popd >/dev/null

exit $?