[deploy] Add the git aur submodule

This commit is contained in:
Anas Elgarhy 2023-05-11 22:27:34 +03:00
parent feb819c903
commit d86ffd3813
No known key found for this signature in database
GPG key ID: 0501802A1D496528
4 changed files with 67 additions and 0 deletions

3
.gitmodules vendored
View file

@ -1,3 +1,6 @@
[submodule "archpackage/archy-dwm/archy-dwm-aur"]
path = archpackage/archy-dwm/archy-dwm-aur
url = ssh://aur@aur.archlinux.org/archy-dwm.git
[submodule "archpackage/archy-dwm-git/archy-dwm-git-aur"]
path = archpackage/archy-dwm-git/archy-dwm-git-aur
url = ssh://aur@aur.archlinux.org/archy-dwm-git.git

View file

@ -0,0 +1,22 @@
pkgbase = archy-dwm-git
pkgdesc = A dynamic window manager for X with some patches applied
pkgver = 1.0.0.r1.gfeb819c
pkgrel = 1
url = https://github.com/archy-linux/archy-dwm
arch = i686
arch = x86_64
license = MIT
makedepends = git
makedepends = make
depends = libx11
depends = libxinerama
depends = libxft
depends = freetype2
depends = archy-slstatus-git
depends = archy-dmenu-git
provides = archy-dwm
conflicts = archy-dwm
source = archy-dwm::git+https://github.com/archy-linux/archy-dwm.git
sha256sums = SKIP
pkgname = archy-dwm-git

View file

@ -0,0 +1,41 @@
# Maintainer: Anas Elgarhy <anas.elgarhy.dev@gmail.com>
pkgname=archy-dwm-git
_pkgname=archy-dwm
pkgver=1.0.0.r1.gfeb819c
pkgrel=1
pkgdesc="A dynamic window manager for X with some patches applied"
url="https://github.com/archy-linux/$_pkgname"
arch=('i686' 'x86_64')
license=('MIT')
options=()
depends=('libx11' 'libxinerama' 'libxft' 'freetype2' 'archy-slstatus-git' 'archy-dmenu-git')
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"
}

@ -0,0 +1 @@
Subproject commit 4ee54178fef085aad3256c22c060cac3cf4a05f9