summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a5843c2c323ba376f2c0f2dc8526021ff7c2b27 (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=1
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-$pkgver"
}

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

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

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

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