summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 31831f801883c97e5bca909ac8b46c623070a508 (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
45
46
47
# Maintainer: Filip Parag <aur@filiparag.com>
pkgname=sydf
pkgver=0.1
pkgrel=2
epoch=
pkgdesc="Symlink Your Damn Files"
arch=(any)
url="https://github.com/filiparag/sydf"
license=('GPL')
groups=()
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/filiparag/sydf")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

prepare() {
	git clone $source "$pkgname-git"
}

pkgver() {
	cd "$pkgname-git"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	chmod +x "$pkgname-git/sydf"
}

check() {
	test -f "$pkgname-git/sydf"
}

package() {
	mkdir -p ${pkgdir}/usr/bin
	cp "$pkgname-git/sydf"	${pkgdir}/usr/bin
}