blob: 354bcb9c9047e18c6fbfe13f0d8e832164c7fa55 (
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
29
|
#!/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
pushd ${PKGDEST} >/dev/null
repo-add stage3.db.tar.gz $@
popd >/dev/null
# 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 $?
|