makedeb
C library for finding platform-specific dirs
Click here to go back to the commit logs for appdir-git.
Hash: 22de1f0d344f8303d4c8de3448511a6b669ba9b4
Message: Actually git package
diff --git a/.SRCINFO b/.SRCINFO
index f4de113..5aea630 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = appdir-git
pkgdesc = C library for finding platform-specific dirs
- pkgver = 0.1.0
+ pkgver = 0.1.0.r4.g9ce90c1
pkgrel = 1
url = https://github.com/Forty-Bot/appdir
arch = any
@@ -10,7 +10,7 @@ pkgbase = appdir-git
makedepends = cmake
provides = appdir
conflicts = appdir
- source = appdir-git-0.1.0.tar.gz::https://github.com/Forty-Bot/appdir/archive/refs/tags/0.1.0.tar.gz
+ source = appdir-git::git+https://github.com/Forty-Bot/appdir
sha512sums = SKIP
pkgname = appdir-git
diff --git a/PKGBUILD b/PKGBUILD
index 41bd002..53d6a99 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer : MorsMortium <morsmortium@gmail.com>
pkgname=appdir-git
-pkgver=0.1.0
+pkgver=0.1.0.r4.g9ce90c1
pkgrel=1
url="https://github.com/Forty-Bot/appdir"
pkgdesc="C library for finding platform-specific dirs"
@@ -10,11 +10,16 @@ provides=('appdir')
conflicts=('appdir')
license=('LGPL3')
makedepends=('gcc' 'make' 'cmake')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/Forty-Bot/appdir/archive/refs/tags/$pkgver.tar.gz")
+source=("${pkgname}::git+https://github.com/Forty-Bot/appdir")
sha512sums=('SKIP')
+pkgver(){
+ cd "$pkgname"
+ git describe --long --tags | sed 's/-/.r/;s/-/./'
+}
+
package() {
- cd $pkgname-$pkgver
+ cd "$pkgname"
mkdir build
cd build
cmake ..