summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD37
2 files changed, 32 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d4ed970553a..edc7f27401e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,17 @@
pkgbase = crawl
- pkgdesc = Craw stonesoup, curses version
+ pkgdesc = Crawl stonesoup, curses version
pkgver = 0.21.0
- pkgrel = 1
+ pkgrel = 2
url = http://crawl.develz.org/
- arch = any
+ arch = i686
+ arch = x86_64
license = GPL2
makedepends = git
- depends = ncurses
- source = git://github.com/crawl/crawl.git#tag=0.21.0
- md5sums = SKIP
+ depends = lua51
+ depends = sqlite
+ depends = zlib
+ source = https://github.com/crawl/crawl/archive/0.21.0.tar.gz
+ md5sums = 0780da66a5afe5af8e6d3013bf9d950c
pkgname = crawl
diff --git a/PKGBUILD b/PKGBUILD
index 422c2e1801f..15e7f43405d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,40 +1,49 @@
# Maintainer: Moritz Schoenherr <moritz.schoenherr[at]gmail[dot]com>
pkgname=crawl
pkgver=0.21.0
-pkgrel=1
-pkgdesc="Craw stonesoup, curses version"
+pkgrel=2
+pkgdesc="Crawl stonesoup, curses version"
url="http://crawl.develz.org/"
-arch=('any')
+arch=('i686' 'x86_64')
license=('GPL2')
-depends=('ncurses')
+depends=('lua51' 'sqlite' 'zlib')
makedepends=('git')
conflicts=()
replaces=()
backup=()
-source=("git://github.com/crawl/crawl.git#tag=${pkgver}")
+source=("https://github.com/crawl/$pkgname/archive/$pkgver.tar.gz")
-md5sums=('SKIP')
+md5sums=('0780da66a5afe5af8e6d3013bf9d950c')
prepare() {
- cd "${srcdir}/${pkgname}"
-
- git submodule update --init
+ cd "${srcdir}/${pkgname}-${pkgver}/crawl-ref/source"
+
+ echo $pkgver > util/release_ver
}
build() {
- cd "${srcdir}/${pkgname}/crawl-ref/source"
+ cd "${srcdir}/${pkgname}-${pkgver}/crawl-ref/source"
+ make \
+ prefix=/usr \
+ bin_prefix=bin \
+ DESTDIR=$pkgdir \
+ SAVEDIR='~/.crawl' \
+ LUA_PACKAGE=lua51
- make CFLAGS="-fPIC" prefix="${pkgdir}/usr"
}
package() {
- cd "${srcdir}/${pkgname}/crawl-ref/source"
-
- make install prefix="${pkgdir}/usr"
+ cd "${srcdir}/${pkgname}-${pkgver}/crawl-ref/source"
+ make install \
+ prefix=/usr \
+ bin_prefix=bin \
+ DESTDIR=$pkgdir \
+ SAVEDIR='~/.crawl' \
+ LUA_PACKAGE=lua51
}