summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3ab945c055623d96eb00b88b0b54c1ed720c9240 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Alessandro Ferrari <alessandroferry@protonmail.com>
pkgname=get-media-playing-git
pkgver=1.0.r2.6e8c903
pkgrel=1
epoch=
pkgdesc="Simple script to get the current media playing in the system. Useful in status bars"
arch=(x86_64)
url="https://github.com/Ferryistaken/get-media-playing.git"
license=('MIT')
groups=()
depends=(playerctl bash)
makedepends=(git)
checkdepends=()
optdepends=()
provides=(get-media-playing)
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

pkgver() {
	cd "${_pkgname}"
	printf "1.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd get-media-playing
}

check() {
	echo "Remember to always read your PKGBUILDs before installing"
}

package() {
	cd get-media-playing
	install -D get-media-playing.sh ${pkgdir}/usr/bin/get-media-playing
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}