Skip to content

Instantly share code, notes, and snippets.

@Narrat

Narrat/PKGBUILD Secret

Created April 6, 2021 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Narrat/f6cf08b5d8eb99e2857a7e1bb140e4e0 to your computer and use it in GitHub Desktop.
Save Narrat/f6cf08b5d8eb99e2857a7e1bb140e4e0 to your computer and use it in GitHub Desktop.
nextpad PKGBUILD
commit 7bca08e834209335c6624ba96ec7dfdc3981be53
Author: Narrat <autumn-wind@web.de>
Date: Tue Apr 6 17:57:21 2021 +0200
update regarding guidelines
* remove gcc (base-devel, which is a requirement for AUR)
* remove empty variables
* add pkgver()
* install into pkgdir
* add conflicts
diff --git a/PKGBUILD b/PKGBUILD
index 5bacd4a..c2da869 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,37 +1,30 @@
# Maintainer: LiveEmily <emily@liveemily.com>
pkgname=nextpad-git
-pkgver=0.0.r8.5440ee1
+pkgver=r17.ece42fe
pkgrel=1
-epoch=
pkgdesc="Not so powerful text editor I'm working on, inspired by vim and nano."
arch=(x86_64)
url="https://github.com/LiveEmily/nextpad.git"
license=('GPL')
-groups=()
-depends=()
-makedepends=(git gcc)
-checkdepends=()
-optdepends=()
+depends=(glibc)
+makedepends=(git)
provides=(nextpad)
-conflicts=()
-replaces=()
-backup=()
-options=()
-install=
-changelog=
+conflicts=(nextpad)
source=("git+$url")
-noextract=()
md5sums=('SKIP')
-validpgpkeys=()
+
+
+pkgver() {
+ cd nextpad
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
build() {
- sudo chmod -R +x ~/nextpad-git
cd nextpad
- sudo make
+ make
}
package() {
- sudo chmod -R +x ~/nextpad-git
- cd ~/nextpad-git/src/nextpad/
- sudo install -Dm 0755 -t /usr/bin/ nextpad
+ cd nextpad/
+ install -Dm 0755 -t "${pkgdir}"/usr/bin/ nextpad
}
# Maintainer: LiveEmily <emily@liveemily.com>
pkgname=nextpad-git
pkgver=r17.ece42fe
pkgrel=1
pkgdesc="Not so powerful text editor I'm working on, inspired by vim and nano."
arch=(x86_64)
url="https://github.com/LiveEmily/nextpad.git"
license=('GPL')
depends=(glibc)
makedepends=(git)
provides=(nextpad)
conflicts=(nextpad)
source=("git+$url")
md5sums=('SKIP')
pkgver() {
cd nextpad
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd nextpad
make
}
package() {
cd nextpad/
install -Dm 0755 -t "${pkgdir}"/usr/bin/ nextpad
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment