summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjD91mZM22017-12-27 20:32:25 +0100
committerjD91mZM22017-12-27 20:34:01 +0100
commit1d490f69ab3eefa0e8d3ebebbf6acd52f7970246 (patch)
tree8d2991e0ed1cf53886f38df321be631b30c4f44e
parentc1833058ba20be9dd6c752866e7220e25aaa78ce (diff)
downloadaur-1d490f69ab3eefa0e8d3ebebbf6acd52f7970246.tar.gz
Make this into a -git package
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD17
2 files changed, 17 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5ac5c1d57a8..8c497819d98 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
-pkgbase = aur-creator-tools
+pkgbase = aur-creator-tools-git
pkgdesc = Small tools to create and maintain AUR packages
- pkgver = 0.1.2
+ pkgver = 7ceae9b
pkgrel = 1
url = https://github.com/jD91mZM2/aur-creator-tools
arch = x86_64
arch = i386
license = MIT,
- license = custom
- source = https://github.com/jD91mZM2/aur-creator-tools/archive/v0.1.2.tar.gz
- sha256sums = 50815faf36a39232eafb3e46145307f502061ffc861c8988245e06b09acfe1a6
+ license = custom:MIT
+ source = aur-creator-tools-git::git+https://github.com/jD91mZM2/aur-creator-tools
+ sha256sums = SKIP
-pkgname = aur-creator-tools
+pkgname = aur-creator-tools-git
diff --git a/PKGBUILD b/PKGBUILD
index 69ee2d9f3c7..8aa17c272fc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,24 @@
# Maintainer: jD91mZM2 <me@krake.one>
-pkgname="aur-creator-tools"
-pkgver=0.1.2
+pkgname="aur-creator-tools-git"
+pkgver=7ceae9b
pkgrel=1
pkgdesc="Small tools to create and maintain AUR packages"
url="https://github.com/jD91mZM2/aur-creator-tools"
arch=("x86_64" "i386")
-license=("MIT", "custom")
+license=("MIT", "custom:MIT")
makedepends=()
optdepends=()
depends=()
-source=("https://github.com/jD91mZM2/aur-creator-tools/archive/v$pkgver.tar.gz")
-sha256sums=('50815faf36a39232eafb3e46145307f502061ffc861c8988245e06b09acfe1a6')
+source=("$pkgname::git+https://github.com/jD91mZM2/aur-creator-tools")
+sha256sums=("SKIP")
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ git rev-parse --short HEAD | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$srcdir/$pkgname"
install -Dm 755 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"