summaryrefslogtreecommitdiff
path: root/mipsrelease
blob: 140e524e10f3c07bdd8e2bbb1aa2374a3772dcc3 (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
# 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

repo=$1; shift

pushd ${PKGDEST} >/dev/null
  repo-add stage3.db.tar.gz $@ 
popd >/dev/null

# Get all needed sources
source PKGBUILD
makepkg --source

[ ! -d ${WORKDIR}/abs/${CARCH}/${repo} ] && mkdir -p ${WORKDIR}/${CARCH}/${repo} >/dev/null

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

exit $?