summaryrefslogtreecommitdiff
path: root/community/fossil/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/fossil/PKGBUILD')
-rw-r--r--community/fossil/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/community/fossil/PKGBUILD b/community/fossil/PKGBUILD
new file mode 100644
index 000000000..1c105dbdb
--- /dev/null
+++ b/community/fossil/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id: PKGBUILD 107210 2014-03-14 15:09:48Z anatolik $
+# Maintainer: Anatol Pomozov <anatol pomozov at gmail>
+# Contributor: Daniel YC Lin <dlin.tw at gmail>
+# Contributor: Konstantin Plotnikov <kostyapl at gmail dot com>
+
+pkgname=fossil
+pkgver=1.28
+_date_pkgver=20140127173344
+# NOTE: update _date_pkgver from http://www.fossil-scm.org/download.html
+pkgrel=3
+pkgdesc='Simple, high-reliability, distributed software configuration management'
+arch=(i686 x86_64)
+license=(BSD)
+url='http://www.fossil-scm.org'
+depends=(openssl zlib)
+source=(
+ fossil.socket
+ fossil.service
+ fossil-xinetd
+ bash.completion
+ http://www.fossil-scm.org/download/fossil-src-$_date_pkgver.tar.gz
+)
+sha256sums=('f885e17998dc1eece1688a75e516663462fe72a7f4f132def4132055777c7ff8'
+ 'c4973079facf209d3757db81df08f8d0843ede242f2a0c12281720da65e3b166'
+ '2f9a141fadfb7cb5225f0d65a308949bbc592bff9d567b5c472edb413c81f5aa'
+ 'e22e19dba1a4be6a62af0b77ff0267c2a0f19edf2f6a9133ee64246fae5d87da'
+ 'aca7c5a7c39ae2880712020e089c9c12543ba656c71d8cf8ac50e3c8871baa80')
+
+build() {
+ cd fossil-src-$_date_pkgver
+ ./configure --prefix=/usr
+ # headers and translate targets are problematic with parallel jobs
+ make -j1 bld bld/headers
+ make
+}
+
+package() {
+ install -Dm644 fossil-xinetd "$pkgdir"/etc/xinetd.d/fossil
+ install -Dm644 fossil.socket "$pkgdir"/usr/lib/systemd/system/fossil.socket
+ install -Dm644 fossil.service "$pkgdir"/usr/lib/systemd/system/fossil@.service
+ install -Dm644 bash.completion "$pkgdir"/usr/share/bash-completion/completions/fossil
+
+ cd fossil-src-$_date_pkgver
+ install -Dm755 fossil "$pkgdir"/usr/bin/fossil
+ install -Dm644 COPYRIGHT-BSD2.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}