summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b4d3256c20638905e65be1fe22ba14aa97af5cae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: RedTide <redtid3@gmail.com>

prjname=wine-installer
prjcreator=linuxmint
pkgname=${prjname}-git
pkgver=r6.a751092
pkgrel=1
pkgdesc='A metapackage that provides desktop files and menus to Wine.'
arch=('x86_64')
license=('GPL3')
url="https://github.com/${prjcreator}/${prjname}"
makedepends=('git')
optdepends=('winetricks: Script to install various redistributable runtime libraries in Wine.')
depends=('wine')
conflicts=('wine-installer')
source=("${pkgname}"::"git+https://github.com/${prjcreator}/${prjname}.git")
sha256sums=('SKIP')

pkgver() {
	cd "${pkgname}"
	( set -o pipefail
		git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
		printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
	)
}
package() {
  cd "${pkgname}"
  cp -r usr "${pkgdir}"
  cp -r etc "${pkgdir}"
}