aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-09-03 20:15:05 +0200
committerpml68 <contact@pml68.dev>2025-09-03 20:15:05 +0200
commit456e73cc3d88ead5f5f70b5458303d5f3fab436c (patch)
treeb7defd36033ee8d5b471f3f15d07a7320199e004
parentfeat: initial commit (diff)
downloadPKGBUILDs-456e73cc3d88ead5f5f70b5458303d5f3fab436c.tar.gz
feat: add `aur-git` package
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD29
-rw-r--r--README.md11
3 files changed, 46 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..53def92
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = aur-git
+ pkgdesc = A simple script for AUR package management
+ pkgver = 1.0.0
+ pkgrel = 1
+ url = https://github.com/pml68/aur
+ arch = any
+ license = MIT
+ depends = bash
+ depends = git
+ provides = aur
+ conflicts = aur
+ options = !strip
+ options = !debug
+ source = aur-git::git+https://github.com/pml68/aur.git
+ sha256sums = SKIP
+
+pkgname = aur-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..048a921
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: pml68 <contact@pml68.dev>
+
+pkgname=aur-git
+pkgver=1.0.0.r0.gdaca344
+pkgrel=1
+pkgdesc='A simple script for AUR package management'
+arch=('any')
+url='https://github.com/pml68/aur'
+license=('MIT')
+depends=(
+ 'bash'
+ 'git'
+)
+options=('!strip' '!debug')
+conflicts=('aur')
+provides=('aur')
+source=("${pkgname}::git+${url}.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${pkgname}"
+ git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+package() {
+ cd "${pkgname}"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
diff --git a/README.md b/README.md
deleted file mode 100644
index fc9dab3..0000000
--- a/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# PKGBUILDs
-
-My personal PKGBUILDs.
-
-## Usage
-
-For available packages, check out the different branches; Each one contains a single package. For installation of a selected package, clone it with
-```sh
-$ git clone --branch <package_name> --single-branch https://github.com/pml68/PKGBUILDs <package_name>
-```
-Then you can enter the directory and install with your preferred tool (`makepkg`, `yay` etc.)