summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLartza2018-05-13 14:26:52 +0300
committerLartza2018-05-13 14:28:10 +0300
commit8c5d966318cb9198da1a21e5d40ff363ad369429 (patch)
treeccd8254346ca65f5a10e097f0c7fd97f99ab4d5e /PKGBUILD
parent41e3c40f58e07b2da4373f06563c6b595cb46dee (diff)
downloadaur-ckan-git.tar.gz
Update dependencies, packaging
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 10 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 77bf4fdf33b..a58f71fead8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: Patrik Plihal <patrik.plihal@gmail.com>
pkgname=ckan-git
-pkgver=1.22.3.r0.g64309722
+pkgver=1.25.1.r9.g5c5cb609
pkgrel=1
pkgdesc="A metadata repository and associated tools for searching, installing, and managing mods for Kerbal Space Program (KSP)"
arch=('any')
@@ -11,22 +11,24 @@ url="https://github.com/KSP-CKAN/CKAN"
license=('MIT')
provides=('ckan')
conflicts=('ckan')
-depends=('mono' 'curl')
+depends=('mono')
makedepends=('git' 'python2' 'python2-requests')
-source=('git://github.com/KSP-CKAN/CKAN')
-sha256sums=('SKIP')
+source=('git+https://github.com/KSP-CKAN/CKAN'
+ 'ckan')
+sha256sums=('SKIP'
+ '80d9c6d68d6bd226954d4fa8081d0adb0c58acd1047cea5bbbaf601ad30a129e')
pkgver() {
- cd "$srcdir/CKAN"
+ cd ${srcdir}/CKAN
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
- cd "$srcdir/CKAN"
+ cd ${srcdir}/CKAN
./build
}
package() {
- mkdir -p "$pkgdir/usr/bin/"
- cp $srcdir/CKAN/_build/ckan.exe "$pkgdir/usr/bin/ckan"
+ install -Dm755 ckan ${pkgdir}/usr/bin/ckan
+ install -Dm755 CKAN/_build/ckan.exe ${pkgdir}/usr/lib/ckan/ckan.exe
}