summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2016-09-05 21:22:51 +0200
committerjaseg <code@jaseg.net>2016-09-05 21:22:51 +0200
commit33ee4401072f145fceee8bc2d67501c7a9724341 (patch)
tree136595607ca30f25332ab38c6af833b29f4269db /PKGBUILD
parent74b9fedbf1c28481d3d54ef90e6b9733e49242d4 (diff)
downloadlolcat-33ee4401072f145fceee8bc2d67501c7a9724341.tar.gz
lolcat-33ee4401072f145fceee8bc2d67501c7a9724341.tar.bz2
lolcat-33ee4401072f145fceee8bc2d67501c7a9724341.zip
Add Arch linux PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..5bf68a8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Ricardo (XenGi) Band <email@ricardo.band>
+
+pkgname=c-lolcat
+pkgver=r26.502d379
+pkgrel=1
+pkgdesc="High-performance implementation of lolcat"
+arch=('i686' 'x86_64')
+url="https://github.com/jaseg/lolcat"
+license=('WTFPL')
+depends=()
+makedepends=()
+conflicts=('lolcat' 'python-lolcat')
+source=("$pkgname"::'git+https://github.com/jaseg/lolcat.git')
+sha256sums=(SKIP)
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git describe --always)"
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ mkdir -p "${pkgdir}/usr/bin"
+ make DESTDIR="$pkgdir/usr/bin" install
+}