summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorWesley Moore2020-02-01 14:08:26 +1100
committerWesley Moore2020-02-01 14:08:26 +1100
commit2dda545ccc62874907d56379de4c6ce5b37f5e48 (patch)
tree92c48be0dd532f393927cc35516387e588788439 /PKGBUILD
downloadaur-titlecase.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fb070f9f574
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Wesley Moore <wes@wezm.net>
+
+pkgname=titlecase
+pkgver=1.1.0
+pkgrel=1
+pkgdesc='A tool for making text title case'
+arch=('i686' 'x86_64')
+url="https://github.com/wezm/titlecase"
+license=('MIT')
+depends=()
+conflicts=('titlecase-git')
+makedepends=('rust' 'cargo')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('967502c98a81fa1f49de798410cb1c0bc7a54a81e773492451da78608c3d77dc')
+
+build() {
+ cd "$pkgname-$pkgver"
+ cargo build --release --locked
+}
+
+package() {
+ install -Dm755 "$srcdir/$pkgname-$pkgver/target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
+}