summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md36
-rw-r--r--aur/bond-git/.SRCINFO18
-rw-r--r--aur/bond-git/PKGBUILD39
-rw-r--r--aur/coreclr-git/.SRCINFO (renamed from .SRCINFO)0
-rw-r--r--aur/coreclr-git/PKGBUILD (renamed from PKGBUILD)0
-rwxr-xr-xpkg.sh45
6 files changed, 138 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..779182e
--- /dev/null
+++ b/README.md
@@ -0,0 +1,36 @@
+# Arch Linux Packages
+
+A collection of all the Arch Linux packages I maintain, currently AUR packages only.
+
+Should be identical to https://aur.archlinux.org/packages/?SeB=m&K=yuvadm
+
+Feel free to open issues/PRs in this repository for fixes to be merged into the AUR.
+
+## Usage
+
+The management of this repository is implemented using [git subtree](https://git.kernel.org/cgit/git/git.git/plain/contrib/subtree/git-subtree.txt) which allows all changes to be tracked in this single repo, as well as publish changes to each separate AUR package remote.
+
+Use the `pkg.sh` wrapper script to run the common commands:
+
+### Add New Package
+
+```bash
+$ ./pkg.sh add pkgname
+```
+
+### Update Package
+
+Edit the relevant files in `aur/$pkgname` and then
+
+```bash
+$ git commit -m "Bumped $pkgname to v1.2.3"
+$ ./pkg.sh update pkgname
+```
+
+### Import Packages
+
+Many packages can be initially imported by running
+
+```bash
+$ ./pkg.sh import pkgname1 pkgname2 pkgname3
+```
diff --git a/aur/bond-git/.SRCINFO b/aur/bond-git/.SRCINFO
new file mode 100644
index 0000000..d216832
--- /dev/null
+++ b/aur/bond-git/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = bond-git
+ pkgdesc = A cross-platform framework for working with schematized data
+ pkgver = 7a14f45
+ pkgrel = 1
+ url = https://github.com/microsoft/bond/
+ arch = any
+ license = MIT
+ makedepends = cmake
+ makedepends = boost
+ makedepends = ghc
+ makedepends = cabal-install
+ makedepends = rapidjson-git
+ provides = bond
+ source = bond-git::git+https://github.com/microsoft/bond/
+ sha1sums = SKIP
+
+pkgname = bond-git
+
diff --git a/aur/bond-git/PKGBUILD b/aur/bond-git/PKGBUILD
new file mode 100644
index 0000000..a918889
--- /dev/null
+++ b/aur/bond-git/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Yuval Adam <yuval at y3xz dot com> PGP-Key: 271386AA2EB7672F
+
+pkgname=bond-git
+pkgver=7a14f45
+pkgrel=1
+pkgdesc="A cross-platform framework for working with schematized data"
+arch=('any')
+url="https://github.com/microsoft/bond/"
+license=(MIT)
+depends=('')
+makedepends=('cmake' 'boost' 'ghc' 'cabal-install' 'rapidjson-git')
+provides=('bond')
+source=("$pkgname::git+$url")
+sha1sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ echo $(git describe --always | sed 's/-/./g')
+}
+
+build() {
+ cd "$pkgname"
+
+ # update cabal before we start
+ cabal update
+
+ mkdir build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+ make
+}
+
+package() {
+ cd "$pkgname"
+ cd build
+ make DESTDIR=${pkgdir} install
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/.SRCINFO b/aur/coreclr-git/.SRCINFO
index b932123..b932123 100644
--- a/.SRCINFO
+++ b/aur/coreclr-git/.SRCINFO
diff --git a/PKGBUILD b/aur/coreclr-git/PKGBUILD
index 0dac5d7..0dac5d7 100644
--- a/PKGBUILD
+++ b/aur/coreclr-git/PKGBUILD
diff --git a/pkg.sh b/pkg.sh
new file mode 100755
index 0000000..521d814
--- /dev/null
+++ b/pkg.sh
@@ -0,0 +1,45 @@
+usage() {
+ echo ""
+ echo "Usage: $0 <add|update> <pkgname>"
+ echo " $0 import <pkgname> [pkgname] ..."
+ echo ""
+ echo "This script wraps the typical AUR creation and update procedures"
+ echo ""
+ exit 1
+}
+
+add_pkg() {
+ local pkgname="$1"
+ [[ -z $pkgname ]] && usage
+
+ git remote add -f $pkgname "ssh://aur@aur.archlinux.org/$pkgname.git"
+ git subtree add --prefix "aur/$pkgname" $pkgname master
+}
+
+update_pkg() {
+ local pkgname="$1"
+ [[ -z $pkgname ]] && usage
+
+ git subtree push --prefix "aur/$pkgname" $pkgname master
+}
+
+import_pkgs() {
+ for pkgname in "$@"
+ do
+ add_pkg $pkgname
+ done
+}
+
+case "$1" in
+ add)
+ add_pkg $2
+ ;;
+ update)
+ update_pkg $2
+ ;;
+ import)
+ import_pkgs "${@:2}"
+ ;;
+ *)
+ usage
+esac