diff options
author | Emmanuel Gil Peyrot | 2021-11-13 18:26:32 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot | 2021-11-13 18:30:37 +0100 |
commit | 74815f03e00d5a91e9e18af22830d680d0ed223f (patch) | |
tree | 2edb61f13cf8e014a33d0c472a8197064092bdf9 /PKGBUILD | |
parent | 1596b356389b941e3eb87b8ddd13f437b3e690d9 (diff) | |
download | aur-74815f03e00d5a91e9e18af22830d680d0ed223f.tar.gz |
Use split packages, now that there are two repositories
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 57 |
1 files changed, 35 insertions, 22 deletions
@@ -1,45 +1,58 @@ # Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> # Contributor: Mopi <mopi@dotslashplay.it> -pkgname=play.it-git -pkgver=2.11.3.r77.gefb6330b +pkgbase=play.it-git +pkgname=(play.it-git play.it-games-git) +pkgver=r3072.bbf6b17e pkgrel=1 -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' - 'icoutils: to manipulate Windows icon files' - 'innoextract: to extract some Windows installers' - 'unzip: to extract some archives' -) -source=(play.it::"git+https://forge.dotslashplay.it/play.it/scripts.git") -sha1sums=('SKIP') +source=('git+https://forge.dotslashplay.it/play.it/scripts.git' + 'git+https://forge.dotslashplay.it/play.it/games.git') +sha1sums=('SKIP' 'SKIP') pkgver() { - cd play.it + cd scripts git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { - cd play.it - sed -i '/DEFAULT_OPTION_PREFIX/s,=.*,=/usr,' play.it-2/src/99_init.sh + cd scripts + sed -i '/^\s\+DEFAULT_OPTION_ARCHITECTURE=/s,=.*,=auto,' play.it-2/src/99_init.sh } build() { - cd play.it + cd scripts make } -package() { - cd play.it - make DESTDIR="$pkgdir"/ prefix=/usr bindir=/usr/bin datadir=/usr/share install +package_play.it-git() { + pkgdesc="Easy way to install games on Linux - git version" + depends=('bash') + optdepends=( + 'imagemagick: to convert images between formats' + 'libarchive: to extract various archive formats' + 'icoutils: to manipulate Windows icon files' + 'innoextract: to extract some Windows installers' + 'unzip: to extract some archives' + ) + provides=('play.it') + conflicts=('play.it') + + cd scripts + make DESTDIR="$pkgdir"/ prefix=/usr bindir=/usr/bin datadir=/usr/share install-library install-wrapper install-manpage install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } +package_play.it-games-git() { + pkgdesc="Easy way to install games on Linux, game scripts - git version" + depends=('play.it-git') + provides=('play.it-games') + conflicts=('play.it-games') + + cd games + make DESTDIR="$pkgdir"/ prefix=/usr bindir=/usr/bin datadir=/usr/share install +} + |