makedeb
C library for finding platform-specific dirs
Click here to go back to the commit logs for appdir.
Hash: e8abbe4fa49aafc501004a868d03780b7c2296f0
Message: Actually git package
diff --git a/.SRCINFO b/.SRCINFO
index a1f6fdd..845c6a7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = appdir
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
@@ -8,7 +8,9 @@ pkgbase = appdir
makedepends = gcc
makedepends = make
makedepends = cmake
- source = appdir-0.1.0.tar.gz::https://github.com/Forty-Bot/appdir/archive/refs/tags/0.1.0.tar.gz
+ provides = appdir
+ conflicts = appdir
+ source = appdir::git+https://github.com/Forty-Bot/appdir
sha512sums = SKIP
pkgname = appdir
diff --git a/PKGBUILD b/PKGBUILD
index 0fb8fa1..0a7b3a2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,25 @@
# Maintainer : MorsMortium <morsmortium@gmail.com>
pkgname=appdir
-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"
arch=('any')
+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 ..