summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authoracxz2020-06-25 08:58:54 -0400
committeracxz2020-06-25 08:58:54 -0400
commit9ae51adf1ecbb35bc23e6122afc2b9d0b3fcf4f2 (patch)
treedba5542d97869cc7480e4b4402419421c25ab7d0 /PKGBUILD
downloadaur-congress-git.tar.gz
[congress] create congress package
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..0ef0a2254a66
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: acxz <akashpatel2008 at yahoo dot com>
+
+pkgname=congress-git
+pkgver=r728.f327c0a
+pkgrel=1
+pkgdesc='Public domain data collectors for the work of Congress, including
+legislation, amendments, and votes.'
+arch=('any')
+url='https://github.com/unitedstates/congress/wiki'
+license=('CC0')
+depends=(python libxml2 libxslt zlib python-pyaml python-iso8601 python-dateutil
+ python-lxml python-pytz python-cssselect python-scrapelib python-mechanize
+ python-beautifulsoup4 python-mock python-xmltodict python-rtyaml)
+makedepends=(python python-setuptools)
+provides=(congress)
+conflicts=(congress)
+source=('git+https://github.com/unitedstates/congress.git')
+sha256sums=('SKIP')
+
+_pkgname=congress
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+
+ mkdir -p ${pkgdir}/usr/bin
+ cp run ${pkgdir}/usr/bin
+
+ cp -r contrib ${pkgdir}/usr/bin
+ cp -r scripts ${pkgdir}/usr/bin
+ cp -r tasks ${pkgdir}/usr/bin
+}