diff options
author | Emmanuel Gil Peyrot | 2019-07-28 19:39:43 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot | 2019-07-28 19:39:43 +0200 |
commit | 08389b8d4773cd49af7351631a89f16c30c2e1ac (patch) | |
tree | 855ced072d5aa63b2f6c9d3f39cc9f323bbee023 /PKGBUILD | |
parent | a8f21845d0ffed89fc2d5bbfbb67c6b5c2eeb877 (diff) | |
download | aur-08389b8d4773cd49af7351631a89f16c30c2e1ac.tar.gz |
Make a -git version of ./play.it
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 16 insertions, 9 deletions
@@ -1,15 +1,17 @@ -# Maintainer: Mopi <mopi@dotslashplay.it> -# Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> +# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> +# Contributor: Mopi <mopi@dotslashplay.it> -pkgname=play.it -pkgver=2.11.2 +pkgname=play.it-git +pkgver=2.11.1.r849.g1a4d6b0e pkgrel=1 -pkgdesc="Easy way to install games on Linux" +pkgdesc="Easy way to install games on Linux - git version" arch=('any') url="https://wiki.dotslashplay.it" license=('BSD') depends=('bash') makedepends=('pandoc') +provides=('play.it') +conflicts=('play.it') optdepends=( 'imagemagick: to convert images between formats' 'libarchive: to extract various archive formats' @@ -17,16 +19,21 @@ optdepends=( 'innoextract: to extract some Windows installers' 'unzip: to extract some archives' ) -source=("${pkgname}-${pkgver}.tar.gz::https://framagit.org/vv221/play.it/-/archive/${pkgver}/play.it-${pkgver}.tar.gz") -sha1sums=('b5a2dba4d61ea5b77e87714d3e862d48991facba') +source=(play.it::"git+https://forge.dotslashplay.it/play.it/scripts.git") +sha1sums=('SKIP') + +pkgver() { + cd play.it + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} build() { - cd "$srcdir/$pkgname-$pkgver" + cd play.it make } package() { - cd "$srcdir/$pkgname-$pkgver" + cd play.it make DESTDIR="$pkgdir" prefix="/usr" bindir="/usr/bin" install install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } |