From 08b4541394f16e1bc1d84b00024ee43c231136b8 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 29 Apr 2021 11:11:07 +0300 Subject: add AUR packaging files Copied them from my other project linux-status. --- PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 PKGBUILD (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..20e0112 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Egor Tensin +pkgname=config-links +pkgver=0.2 +pkgrel=1 +pkgdesc='Config file sharing' +arch=(any) +url='https://github.com/egor-tensin/config-links' +license=(MIT) +depends=(bash) +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +md5sums=(SKIP) + +package() { + cd "$srcdir" + + install -D -m 0644 -t "$pkgdir/usr/share/doc/config-links" "../README.Arch" + + cd "$pkgname-$pkgver" + + install -D -m 0644 -t "$pkgdir/usr/share/config-links" LICENSE.txt + + install -D -m 0644 -t "$pkgdir/usr/share/doc/config-links" README.md + + install -D -m 0755 -t "$pkgdir/usr/lib/config-links" update.sh + install -D -m 0755 -t "$pkgdir/usr/lib/config-links" unlink.sh + install -D -m 0644 -t "$pkgdir/usr/lib/config-links/src" src/common.sh + install -D -m 0644 -t "$pkgdir/usr/lib/config-links/src" src/db.sh + install -D -m 0644 -t "$pkgdir/usr/lib/config-links/src" src/os.sh + install -D -m 0644 -t "$pkgdir/usr/lib/config-links/src" src/path.sh + install -D -m 0644 -t "$pkgdir/usr/lib/config-links/src" src/vars.sh + + install -d "$pkgdir/usr/bin" + ln -s -- /usr/lib/config-links/update.sh "$pkgdir/usr/bin/links-update" + ln -s -- /usr/lib/config-links/unlink.sh "$pkgdir/usr/bin/links-remove" +} -- cgit v1.2.3