summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorZhang Hai2018-03-11 18:20:38 -0700
committerZhang Hai2018-03-11 18:20:38 -0700
commitcf6d228bf52e0b9bc56003f5f7c1e2059148fb66 (patch)
tree9b91b267cdb682b6e17afa66fcf1792f975ecbc9 /PKGBUILD
parent58ad3739dd4e936839f9a70454f251d093decb92 (diff)
downloadaur-cf6d228bf52e0b9bc56003f5f7c1e2059148fb66.tar.gz
Fix missing build(), use recommended versioning and bump epoch.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 18 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5aeeca7ebfe..3f4ccc0a27c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,33 @@
-# PKGBUILD file for Arch Linux packaging
+# Maintainer: Zhang Hai <dreaming.in.code.zh@gmail.com>
# Contributor: Star Brilliant <echo bTEzMjUzQGhvdG1haWwuY29tCg== | base64 -d>
-pkgname=danmaku2ass-git
-pkgver=20140615
+_pkgname=danmaku2ass
+pkgname="${_pkgname}-git"
+pkgver=r214.3dd20e4
pkgrel=1
+epoch=1
pkgdesc="Convert comments from Niconico/AcFun/bilibili to ASS format"
arch=('any')
url="https://github.com/m13253/danmaku2ass"
license=('GPL3')
depends=('python>=3')
makedepends=('git')
-provides=('danmaku2ass')
-conflicts=('danmaku2ass')
-source=('danmaku2ass::git://github.com/m13253/danmaku2ass.git')
-md5sums=('SKIP')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+source=("${_pkgname}::git+https://github.com/m13253/danmaku2ass.git")
+sha256sums=('SKIP')
pkgver() {
- cd "$srcdir/danmaku2ass"
- git log -1 --format="%cd" --date=short | tr -d -
+ cd "${srcdir}/${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ make
}
package() {
- cd "$srcdir/danmaku2ass"
- make install DESTDIR="$pkgdir" PREFIX=/usr
+ cd "${srcdir}/${_pkgname}"
+ make install DESTDIR="${pkgdir}" PREFIX='/usr'
}