summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xaur7
-rwxr-xr-xdiff-unfree5
-rwxr-xr-xlibrerepkg2
3 files changed, 11 insertions, 3 deletions
diff --git a/aur b/aur
index 011dc45..35783c5 100755
--- a/aur
+++ b/aur
@@ -37,6 +37,11 @@ done
missing_deps=()
for _pkg in ${@}; do
+
+# Remove the version
+# TODO check downloaded PKGBUILD version
+ _pkg="${_pkg%%[<>=]*}"
+
msg "Downloading $_pkg..."
wget -O - -q http://aur.archlinux.org/packages/$_pkg/$_pkg.tar.gz | \
tar xzf - >/dev/null 2>&1
@@ -75,6 +80,8 @@ for _pkg in ${@}; do
if ! find ${ABSROOT} -maxdepth 2 -type d -name "$_dep" | egrep "*" >/dev/null ; then
missing_deps=(${missing_deps} $_dep)
fi
+ else
+ msg2 "$_dep is on repos"
fi
done
diff --git a/diff-unfree b/diff-unfree
index 03e4324..a0a8d63 100755
--- a/diff-unfree
+++ b/diff-unfree
@@ -27,7 +27,7 @@ custom_config=$XDG_CONFIG_HOME/libretools/libretools.conf
msg "Diff-Unfree helps you diff build scripts from ABSLibre against
(Unfree) ABS. Package name and repo will we guessed if you don't
specify them."
- msg2 "Usage: $0 [repo] [unfree-package]"
+ msg2 "Usage: $0 [community|packages] [unfree-package] [repo]"
exit 0
}
@@ -40,6 +40,7 @@ package_guess=$(basename $PWD)
repo=${1:-$(basename $(dirname $PWD))}
package=${2:-${package_guess/-libre}}
+trunk=${3:-trunk}
tmp_dir=$(mktemp -d /tmp/${package}.XXXXXX)
@@ -55,7 +56,7 @@ case $repo in
;;
esac
-unfree_dir="${tmp_dir}/${svnrepo}/${package}/trunk"
+unfree_dir="${tmp_dir}/${svnrepo}/${package}/${trunk}"
[[ ! -d "${tmp_dir}" ]] && {
error "Can't create temp dir"
diff --git a/librerepkg b/librerepkg
index 94a1e9e..90e68ae 100755
--- a/librerepkg
+++ b/librerepkg
@@ -58,6 +58,6 @@ msg2 "Updating md5sums"
makepkg -gp rePKGBUILD >> rePKGBUILD
msg "Repackaging using makepkg"
-makepkg -Lcp rePKGBUILD
+makepkg -Lcdp rePKGBUILD
stdnull popd ${tempdir}