summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c76e6566eb22c60226486c1bd1d297cd88d4b43 (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
# Maintainer: Seppia <seppia@seppio.fish>
pkgname=repofish-git
pkgver=r9.19d76f4
pkgrel=1
pkgdesc="My friends told me to make available this script I wrote to manage my local archlinux repo and AUR packages, so here it is."
arch=('any')
url="https://git.seppia.net/repofish.git"
license=('GPLv3')
groups=()
depends=('curl' 'git' 'jq')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname}","${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('repofish::git+https://git.seppia.net/repofish.git')
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}

package() {
	cd "$srcdir/${pkgname%-git}"
	install -D repo.sh $pkgdir/usr/bin/repofish
}