diff options
author | Nikhil Singh | 2023-08-12 15:16:04 +0530 |
---|---|---|
committer | Nikhil Singh | 2023-08-12 15:16:04 +0530 |
commit | 940ba1cd95ef1c87c9251ba1d7d60cb47d223850 (patch) | |
tree | a76699b30a831e9c7b8c23770f093a233fd732a5 | |
download | aur-940ba1cd95ef1c87c9251ba1d7d60cb47d223850.tar.gz |
first push
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ac38fe2664c1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = archwiki-offline + pkgdesc = A simple script to view ArchWiki offline + pkgver = r3.c643d18 + pkgrel = 1 + url = https://github.com/niksingh710/archwiki-offline + arch = any + license = MIT + makedepends = git + depends = arch-wiki-docs + optdepends = fzf: for listing in fzf + optdepends = rofi: for listing in rofi + optdepends = dmenu: for listing in dmenu + optdepends = wm3: for viewing in cli with wm3 + provides = archwiki-offline + conflicts = archwiki-offline + source = git+https://github.com/niksingh710/archwiki-offline.git + md5sums = SKIP + +pkgname = archwiki-offline diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a664f7baaab4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Nikhil Singh <nik.singh710@gmail.com> +pkgname=archwiki-offline +pkgver=r5.f12862d +pkgrel=1 +pkgdesc="A simple script to view ArchWiki offline" +arch=("any") +url="https://github.com/niksingh710/archwiki-offline" +license=('MIT') +makedepends=("git") +depends=( +'arch-wiki-docs' +) +optdepends=( +'fzf: for listing in fzf' +'rofi: for listing in rofi' +'dmenu: for listing in dmenu' +'wm3: for viewing in cli with wm3' +) +source=("git+https://github.com/niksingh710/archwiki-offline.git") +md5sums=('SKIP') +provides=('archwiki-offline') +conflicts=('archwiki-offline') + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$pkgname" + install -Dm755 ./archwiki-offline "$pkgdir/usr/bin/$pkgname" + install -Dm644 ./Readme.md "$pkgdir/usr/share/doc/$pkgname" + install -Dm644 ./LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE + +} + +# vim: ft=PKGBUILD |