summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumi M2016-10-17 18:37:20 +0900
committerKazumi M2016-10-17 18:37:20 +0900
commit0c89ef185df3551cc8d16b0e5f30ff32a8b621e9 (patch)
tree2b5abce0e9f7bb3e48867fd1c98bc58b1aac5f1c
parent2a60b2f60d42c65e435cd9081efcdfdf4ebf6cc5 (diff)
downloadaur-alice-git.tar.gz
Fix.
-rw-r--r--PKGBUILD12
1 files changed, 6 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 076eba898ab..e9c59a0b142 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,12 +15,12 @@ source=(git://github.com/kuroclef/alice.git)
md5sums=(SKIP)
pkgver() {
- cd "$srcdir"/"${pkgname%-git}"
- printf %s "$(date -I -ud "$(git log -1 --format=%ci)" | sed 's/-//g')"
+ cd "${pkgname%-git}"
+ printf %s "$(date -I -ud "$(git log -1 --format=%ci)" | tr -d -)"
}
build() {
- cd "$srcdir"/"${pkgname%-git}"
+ cd "${pkgname%-git}"
tee config.h <<\EOF
#define CONSUMER_KEY "your_consumer_key"
#define CONSUMER_SECRET "your_consumer_secret"
@@ -31,7 +31,7 @@ EOF
}
package() {
- cd "$srcdir"/"${pkgname%-git}"
- install -Dm 755 ./"${pkgname%-git}" "$pkgdir"/usr/bin/"${pkgname%-git}"
- install -Dm 644 ./README.md "$pkgdir"/usr/share/doc/"${pkgname%-git}"/README.md
+ cd "${pkgname%-git}"
+ install -Dm 755 "${pkgname%-git}" "$pkgdir"/usr/bin/"${pkgname%-git}"
+ install -Dm 644 README.md "$pkgdir"/usr/share/doc/"${pkgname%-git}"/README.md
}