Skip to content

Commit

Permalink
Add local aur makepkg script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Feb 19, 2018
1 parent b61db80 commit b113552
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
target
*.pkg.tar.*
17 changes: 17 additions & 0 deletions makelocalaur
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -eu
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

cd "$script_dir"/..
tar zcf aurto-git.tar.gz "$script_dir"
mv aurto-git.tar.gz "$script_dir"/aur
cd "$script_dir"/aur

trap 'rm -f aurto-git.tar.gz && mv PKGBUILD.original PKGBUILD' EXIT
mv PKGBUILD PKGBUILD.original
cp ../makelocalaur.PKGBUILD PKGBUILD

updpkgsums
makepkg "$@"

mv aurto-0.0.local* ../
27 changes: 27 additions & 0 deletions makelocalaur.PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Maintainer: Alex Butler <[email protected]>
pkgname=aurto
pkgver=0.0.local
pkgrel=1
pkgdesc="A simple aur tool for managing a local 'aurto' repository"
arch=('any')
url="https://github.com/alexheretic/aurto"
license=('MIT')
depends=('aurutils<1.6.0'
'devtools'
'systemd'
'pacutils')
optdepends=()
makedepends=()
install="aurto.install"
source=("aurto-git.tar.gz")
sha256sums=('eb94c0a2920ddea570621da7326f3d60c30401e8c42073b5b3ed3b1216c1ce4b')

build() {
cd aurto
make
}

package() {
cd aurto
cp -r target/* "$pkgdir"/
}

0 comments on commit b113552

Please sign in to comment.