From deddc156358774a43e9aad3ff194b44004bee9d8 Mon Sep 17 00:00:00 2001 From: ayakael Date: Thu, 4 Jan 2018 20:39:27 -0900 Subject: [PATCH] Initial commit --- PKGBUILD | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..b039f00 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +pkgname=bash-libs +pkgver=0.1 +pkgrel=1 +pkgdesc="A collection of bash libraries that I tend to use in my scripts" +arch=(any) +changelog=CHANGELOG +license=('GPL3') +depends=() +source=( + "${pkgname}::git+ssh://git@github.com/ayakael/${pkgname}/#branch=master" +) + +sha256sums=( + "SKIP" +) + +prepare(){ + cd ${srcdir}/${pkgname} + git checkout ${pkgver} +} + +package() { + + # Install the scripts + for libs in $(find ${srcdir}/libs/. -type f); do + install -Dm644 "${srcdir}/libs/${libs}" "${pkgdir}/usr/lib/bash-libs/$(echo ${libs} | sed 's|.sh||')" + done +}