summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosef Miegl2019-02-13 21:43:52 +0100
committerJosef Miegl2019-02-13 21:43:52 +0100
commit79f3332697f4af3f267f68783a9799f4220dc023 (patch)
treed3913bff8ccffa094e30827d0158180a3b20b1b4
parente7e99b3d42a5a81d5501dec522fe96ec783a501a (diff)
downloadaur-79f3332697f4af3f267f68783a9799f4220dc023.tar.gz
update, add license
-rw-r--r--PKGBUILD17
1 files changed, 12 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8268b971089..36e094216d0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,20 +15,27 @@ source=("git+https://github.com/octo/librouteros.git")
sha256sums=('SKIP')
pkgver() {
- cd "${srcdir}/${pkgname%-git}"
+ cd "${pkgname%-git}"
git log -1 --format='%cd.%h' --date=short | tr -d -
}
+prepare() {
+ cd "${pkgname%-git}"
+ autoreconf -f -i
+}
+
build() {
- cd "${srcdir}/${pkgname%-git}"
- autoreconf -i
- ./configure --prefix=/usr --sbindir=/usr/bin
+ cd "${pkgname%-git}"
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
}
package() {
- cd "${srcdir}/${pkgname%-git}"
+ cd "${pkgname%-git}"
make DESTDIR="${pkgdir}" install
+
+ # License
+ install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}
# vim:set ts=2 sw=2 et: