summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD25
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f01f111776e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = apindex
+ pkgdesc = Static HTML file index generator for Github Pages
+ pkgver = 2.2
+ pkgrel = 1
+ url = https://github.com/libthinkpad/apindex
+ arch = any
+ license = BSD
+ makedepends = cmake
+ makedepends = make
+ source = apindex-2.2.tar.gz::https://github.com/libthinkpad/apindex/archive/2.2.tar.gz
+ sha256sums = 50faf021047275df72569a8e7236456c8149da883fa6d8777cc77037de644f77
+
+pkgname = apindex
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9f8670a757b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: peeweep <peeweep at 0x0 dot ee>
+
+pkgname=apindex
+pkgver=2.2
+pkgrel=1
+pkgdesc='Static HTML file index generator for Github Pages'
+url='https://github.com/libthinkpad/apindex'
+license=(BSD)
+arch=(any)
+depends=(python)
+makedepends=(cmake make)
+source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz)
+sha256sums=('50faf021047275df72569a8e7236456c8149da883fa6d8777cc77037de644f77')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ mkdir build && cd build
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}/build"
+ make install DESTDIR="${pkgdir}"
+ install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}