From be18f11a69645704197847903ab79b7182d8caaf Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Fri, 12 May 2023 01:23:55 +0300 Subject: [PATCH] [deploy] Add the git aur submodule --- .gitmodules | 3 ++ archpackage/archy-slstatus-git/.SRCINFO | 17 ++++++++ archpackage/archy-slstatus-git/PKGBUILD | 41 +++++++++++++++++++ .../archy-slstatus-git/archy-slstatus-git | 1 + 4 files changed, 62 insertions(+) create mode 100644 archpackage/archy-slstatus-git/.SRCINFO create mode 100644 archpackage/archy-slstatus-git/PKGBUILD create mode 160000 archpackage/archy-slstatus-git/archy-slstatus-git diff --git a/.gitmodules b/.gitmodules index 75cc20a..248fa0f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "archpackage/archy-slstatus/archpackage/archy-slstatus/archy-slstatus"] path = archpackage/archy-slstatus/archpackage/archy-slstatus/archy-slstatus url = ssh://aur@aur.archlinux.org/archy-slstatus.git +[submodule "archpackage/archy-slstatus-git/archy-slstatus-git"] + path = archpackage/archy-slstatus-git/archy-slstatus-git + url = ssh://aur@aur.archlinux.org/archy-slstatus-git.git diff --git a/archpackage/archy-slstatus-git/.SRCINFO b/archpackage/archy-slstatus-git/.SRCINFO new file mode 100644 index 0000000..c536e2c --- /dev/null +++ b/archpackage/archy-slstatus-git/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = archy-slstatus-git + pkgdesc = A suckless status monitor for dwm + pkgver = 1.0.0.r1.g55b9d57 + pkgrel = 1 + url = https://github.com/archy-linux/archy-slstatus + arch = i686 + arch = x86_64 + license = MIT + makedepends = git + makedepends = make + depends = libx11 + provides = archy-slstatus + conflicts = archy-slstatus + source = archy-slstatus::git+https://github.com/archy-linux/archy-slstatus.git + sha256sums = SKIP + +pkgname = archy-slstatus-git diff --git a/archpackage/archy-slstatus-git/PKGBUILD b/archpackage/archy-slstatus-git/PKGBUILD new file mode 100644 index 0000000..ff5e3ab --- /dev/null +++ b/archpackage/archy-slstatus-git/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Anas Elgarhy +pkgname=archy-slstatus-git +_pkgname=archy-slstatus +pkgver=1.0.0.r1.g55b9d57 +pkgrel=1 +pkgdesc="A suckless status monitor for dwm" +url="https://github.com/archy-linux/$_pkgname" +arch=('i686' 'x86_64') +license=('MIT') +options=() +depends=('libx11') +makedepends=('git' 'make') +install= +provides=("$_pkgname") +conflicts=("$_pkgname") +source=("$_pkgname::git+$url.git") +sha256sums=('SKIP') + +pkgver(){ + cd $_pkgname || exit 1 + git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g' +} + +prepare() { + cd $_pkgname || exit 1 + make archy-dwm.desktop +} + +build() { + cd $_pkgname || exit 1 + make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 +} + +package() { + cd $_pkgname || exit 1 + # shellcheck disable=SC2154 + make PREFIX=/usr DESTDIR="$pkgdir" install + install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -m644 -D README.md "$pkgdir/usr/share/doc/$pkgname/README" + install -m644 -D build/archy-dwm.desktop "$pkgdir/usr/share/xsessions/archy-dwm.desktop" +} diff --git a/archpackage/archy-slstatus-git/archy-slstatus-git b/archpackage/archy-slstatus-git/archy-slstatus-git new file mode 160000 index 0000000..aae222f --- /dev/null +++ b/archpackage/archy-slstatus-git/archy-slstatus-git @@ -0,0 +1 @@ +Subproject commit aae222fe652292ba5d5158ba4349a603d77b0375